Exemple #1
0
 /// <summary>
 /// ServiceRegister is used to register a new service with the local agent
 /// </summary>
 /// <param name="service">A service registration object</param>
 /// <returns>An empty write result</returns>
 public Task <WriteResult> ServiceRegister(AgentServiceRegistration service, CancellationToken ct = default(CancellationToken))
 {
     return(_client.Put("/v1/agent/service/register", service).Execute(ct));
 }
Exemple #2
0
 /// <summary>
 /// ServiceRegister is used to register a new service with the local agent
 /// </summary>
 /// <param name="service">A service registration object</param>
 /// <returns>An empty write result</returns>
 public WriteResult ServiceRegister(AgentServiceRegistration service)
 {
     return(_client.CreateInWrite <AgentServiceRegistration>("/v1/agent/service/register", service).Execute());
 }