public static Config SetConfigValueEx(this DataServiceQuery <Config> service, string name, string context, string propertyName, object propertyValue) { var collectionCtx = service.Context; var setConfigValueUri = service.SetConfigValue(name, context, propertyName, string.Empty).RequestUri; var config = collectionCtx.ExecuteAsync <Config>(setConfigValueUri, "POST", true, new BodyOperationParameter("Name", name), new BodyOperationParameter("Context", context), new BodyOperationParameter("Property", propertyName), new BodyOperationParameter("Value", propertyValue)).GetAwaiter().GetResult().Single(); return(config); }