Elastacloud.AzureManagement.Fluent.Clients.MobileServiceClient.UpdateLiveNotifications C# (CSharp) Method

UpdateLiveNotifications() private method

Used to update everything to do with a Microsoft Account including WNS
private UpdateLiveNotifications ( ) : void
return void
        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();
        }