You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 9, 2020. It is now read-only.
I am running Consul on Windows in Development mode. However, I have a problem in registering a service.
Code
class Program
{
static void Main(string[] args)
{
var options = new ConsulOptions();
var loggerFactory = new LoggerFactory();
var logger = loggerFactory.CreateLogger("logger");
var provider = new ConsulProvider(loggerFactory, Options.Create(options));
Cluster.RegisterService(new Uri($"http://localhost:5011"), provider, "values", "v1", logger);
var res = Microphone.Cluster.Client.GetServiceInstances("values");
Console.ReadLine();
}
}
public class ValuesController : Controller
{
public string Get()
{
return "WebApi Service";
}
}
}
Problem:
However after running the app to register the service, and checking the consul
I am running Consul on Windows in Development mode. However, I have a problem in registering a service.
Code
}
Problem:
However after running the app to register the service, and checking the consul
This is also the output of http://localhost:8500/v1/agent/checks:
Why its failing to register?
The text was updated successfully, but these errors were encountered: