public void Start(IContextFactory contextFactory, IServiceIdentifier serviceIdentifier, IErrorMessageResolver errMessageResolver) { //TODO: Throw exception: Container already started this._contextFactory = contextFactory; this._serviceIdentifier = serviceIdentifier; this._errMessageResolver = errMessageResolver; }
public ServiceRegistration(IServiceIdentifier <TInterface> serviceIdentifier, string path, string checkPath, string?checkBaseUrl) { ServiceIdentifier = serviceIdentifier; Path = path; CheckPath = checkPath; CheckBaseUrl = checkBaseUrl; }
public ConsulServiceLocation(IServiceIdentifier <TInterface> service, ServiceEntry serviceEntry) { var agentService = serviceEntry.Service; Service = service; ServiceEntry = serviceEntry; AgentService = agentService; Tags = agentService.Tags; Port = agentService.Port; Address = agentService.Address; Meta = agentService.Meta; }
public IServiceLocation <TInterface> Choose(IServiceIdentifier <TInterface> identifier, IEnumerable <IServiceLocation <TInterface> > locations) => locations.First();