internal static IMobileServiceClient CreateMobileServiceClient(IMobileServiceClientFactory factory, Uri mobileAppUri, string apiKey = null)
        {
            HttpMessageHandler[] handlers = null;
            if (!string.IsNullOrEmpty(apiKey))
            {
                handlers = new[] { new MobileServiceApiKeyHandler(apiKey) };
            }

            return(factory.CreateClient(mobileAppUri, handlers));
        }
示例#2
0
 public static IDisposableMobileServiceClient CreateClient(this IMobileServiceClientFactory factory) =>
 factory.CreateClient(Array.Empty <HttpMessageHandler>());