public MobileServiceClient(string subscriptionId, X509Certificate2 certificate, string mobileServiceName = null)
{
SubscriptionId = subscriptionId;
ManagementCertificate = certificate;
MobileServiceSqlName = "ZumoSqlServer_" + Guid.NewGuid().ToString("n");
MobileServiceDbName = "ZumoSqlDatabase_" + Guid.NewGuid().ToString("n");
if (mobileServiceName == null) return;
MobileServiceName = mobileServiceName;
try
{
Refresh();
}
catch (Exception)
{
throw new FluentManagementException("mobile service does not exist!", "MobileServiceClient");
}
}