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)); }
public static IDisposableMobileServiceClient CreateClient(this IMobileServiceClientFactory factory) => factory.CreateClient(Array.Empty <HttpMessageHandler>());