private void GetMobileServiceDetails()
{
//execute the details command
var details = new GetMobileServiceDetailsCommand(MobileServiceName)
{
SubscriptionId = SubscriptionId,
Certificate = ManagementCertificate
};
details.Execute();
//set all of the details in the client
ApplicationKey = details.ApplicationKey;
ApplicationUrl = details.ApplicationUrl;
Location = details.Location;
MasterKey = details.MasterKey;
}