示例#1
0
 public void Start(IContextFactory contextFactory, IServiceIdentifier serviceIdentifier, IErrorMessageResolver errMessageResolver)
 {
     //TODO: Throw exception: Container already started
     this._contextFactory     = contextFactory;
     this._serviceIdentifier  = serviceIdentifier;
     this._errMessageResolver = errMessageResolver;
 }
示例#2
0
 public ServiceRegistration(IServiceIdentifier <TInterface> serviceIdentifier, string path, string checkPath, string?checkBaseUrl)
 {
     ServiceIdentifier = serviceIdentifier;
     Path         = path;
     CheckPath    = checkPath;
     CheckBaseUrl = checkBaseUrl;
 }
示例#3
0
        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;
        }
示例#4
0
 public IServiceLocation <TInterface> Choose(IServiceIdentifier <TInterface> identifier, IEnumerable <IServiceLocation <TInterface> > locations)
 => locations.First();