コード例 #1
0
 public Task UpdateConfig(EndPoint endPoint, string name, ProjectionConfig config, UserCredentials userCredentials = null,
                          string httpSchema = EndpointExtensions.HTTP_SCHEMA)
 {
     return(SendPut(endPoint.ToHttpUrl(httpSchema, "/projection/{0}/config", name), JObject.FromObject(config).ToString(),
                    userCredentials, HttpStatusCode.OK));
 }
コード例 #2
0
 /// <summary>
 /// Asynchronously updates the projection config.
 /// </summary>
 /// <param name="name">The name of the projection.</param>
 /// <param name="config">The projection configuration.</param>
 /// <param name="userCredentials">Credentials for the operation.</param>
 public Task UpdateConfigAsync(string name, ProjectionConfig config, UserCredentials userCredentials = null)
 {
     Ensure.NotNullOrEmpty(name, "name");
     return(_client.UpdateConfig(_httpEndPoint, name, config, userCredentials, _httpSchema));
 }