Tag Archives: NuGet

Bring Android Pay to Your Apps with Stripe


via Bring Android Pay to Your Apps with Stripe | Xamarin Blog.

Android Pay has just launched, and Xamarin has everything you need to get your apps ready. The Google Play Services – Wallet NuGet adds the necessary APIs for Android Pay integration.

We’re also proud to announce that the Xamarin Stripe Component is Android Pay compatible! We’ve updated the sample to show you just how easy it is to process Android Pay transactions through Stripe.

After installing the Google Play Services – Wallet NuGet package and theXamarin Stripe Component, start by initializing the Google API client in your Activity with the appropriate API

Updates in Azure WebJobs SDK (1.1.0-alpha2)


via Updates in Azure WebJobs SDK (1.1.0-alpha2) | Microsoft Azure Blog.

We recently released a preview of the WebJobs SDK. In addition to other new features and bug fixes, the release also opens up a new extensibility model allowing you to write your own triggers and binders. In this latest release we have added more extension triggers and binders in addition to introducing the Singleton feature which allows you to declaratively specify that only a single instance of a particular job function should run at any given time, even across multiple scaled out instances.

You can download the WebJobs SDK from the NuGet gallery and can install these packages from the NuGet gallery using the NuGet Package Manager Console.

Getting stock price in C++


via Getting stock price in C++ » Thomas Russell’s Portfolio and Blog.

It seems to be a common problem that people wish to be able to get the current price of a particular stock/share, so I figured it would be a good idea to write a brief article on the easiest way to get the current stock price using native C++.

In this article, I will be making extensive use of the C++REST SDK, also known as Casablanca. It is an open-source, cross-platform SDK initially developed by Microsoft. I will also be using the Yahoo! Finance query engine as the data-source for our query.

I will be working with Visual Studio, which makes Casablanca trivial to install and use; simply right-click on your project and select “Manage NuGet Packages…”, then search for cpprestsdk and install it. If you are not using Visual Studio, you can find comprehensive installation instructions here.

Dependency call stack and Application Insights SDK labs


via Dependency call stack and Application Insights SDK labs | Microsoft Azure Blog.

We have released an experimental package to trace the stack for every dependency call collected by Visual Studio Application Insights. With the existing SDK for .NET, you can track calls from your app to external dependencies such as databases or REST APIs, and find slow or failing calls. But with the current SDK, you can’t easily find out which functions in your app made the calls. Our experimental package, NuGet, addresses this problem. This project extends the Application Insights SDK for .NET to provide call stack information for every dependency collected.

Part 1: Web API Self-Hosting Using Windows Service


via Web API Self-Hosting Using Windows Service: Part 1.

In my previous article, we discussed Web API self-hosting using a console application. This time, we will use a Windows Service to do the self-hosting of the Web API. So let’s start by creating a new Windows Service project type. We call it WindowsService_HostAPI.

In order to perform the self-hosting of the Web API, we need to add references to the self-hosting libraries. For this, we use the Nuget Package Manager and install the references.

Put Some Azure Active Directory in Xamarin.Forms


via Put Some Azure Active Directory in Xamarin.Forms | Xamarin Blog.

he Azure Active Directory Authentication Library (aka ADAL) makes authentication with Azure Active Directory a breeze. We’ve already covered usage of ADAL in various posts on authenticating with Active Directory, adding storage, and adding collaboration (SharePoint) to your mobile apps.
ADAL is available for various platforms and supports Xamarin.Android, Xamarin.iOS, and Windows Phone. It’s easy to integrate ADAL into these projects by adding a NuGet package. Although ADAL hasn’t released a specific Package for Xamarin.Forms, there have been many questions in the Xamarin forums and on StackOverflow about how to use ADAL in a Xamarin.Forms app.

Recently, Vittorio Bertocci, Principal Program Manager at Microsoft, posted ablog about integrating ADAL into Xamarin.Forms apps using a PageRenderer. In this post, I’ll be sharing another way to integrate ADAL into Xamarin.Forms apps using Dependency Service, which is available in Xamarin.Forms.

Share Even More Code with Plugins for Xamarin


via Share Even More Code with Plugins for Xamarin | Xamarin Blog.

One of my top priorities for Moments, a Snapchat clone built with Xamarin.Forms and Microsoft Azure, was to maximize the amount of code shared between my target platforms. I was already achieving a significant amount of shared code with Xamarin.Forms, but I noticed that many things, such as checking for device connectivity or showing a dialog, had to be done on a per-platform basis. Plugins for Xamarin helped fill in those gaps and allowed me to share even more code.

A Plugin for Xamarin is a special kind of NuGet that adds cross-platform functionality or abstracts platform-specific functionality to a common API. These are extremely lightweight and completely cross-platform, so they can be accessed via a Portable Class Library (PCL) or Shared Project. Below, I’ve shared a few of my favorite Plugins for Xamarin that I used to build Moments.