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

UpdateService() private method

Used to update the service settings currently dynamic schema only
private UpdateService ( ) : void
return void
        private void UpdateService()
        {
            // we'll always have a value for this
            var dictionary = new Dictionary<string, string>();
            dictionary[Constants.DynamicSchemaEnabled] = DynamicSchemaEnabled.ToString().ToLower();
            var converted = JsonConvert.SerializeObject(dictionary);
            // execute this command
            // TODO: speak to MSFT the current verb is PATCH it would be good to understand where this is going
            var command = new UpdateMobileServiceSettingsCommand(MobileServiceName, Constants.MobileServicesServiceSettings, converted, "PATCH")
            {
                SubscriptionId = SubscriptionId,
                Certificate = ManagementCertificate
            };
            command.Execute();
        }