private void UpdateLiveNotifications()
{
// set this up
int count = 3;
if (String.IsNullOrEmpty(MicrosoftAccountClientId)) count--;
if (String.IsNullOrEmpty(MicrosoftAccountClientSecret)) count--;
if (String.IsNullOrEmpty(MicrosoftAccountPackageSID)) count--;
// if we only have a single value we're interested
// permutations are client id + secret OR client id + package sid
if (count < 2) return;
var converted = JsonConvert.SerializeObject(new WindowsAuthProvider(MicrosoftAccountPackageSID, MicrosoftAccountClientId, MicrosoftAccountClientSecret));
// execute the command
var command = new UpdateMobileServiceSettingsCommand(MobileServiceName, Constants.MobileServicesLiveSettings, converted)
{
SubscriptionId = SubscriptionId,
Certificate = ManagementCertificate
};
command.Execute();
}