Пример #1
0
        public RouterDevice(IZeroMQServerEndpoint frontendEndpoint, IZeroMQServerEndpoint backendEndpoint)
            : base()
        {
            this.identity = Guid.NewGuid().ToString().Replace("-", "").ToLowerInvariant();

            this.frontendEndpoint = frontendEndpoint;
            this.backendEndpoint  = backendEndpoint;

            this.registeredBackendIdentifiers = new ConcurrentQueue <string>();
            this.registeredBackends           = new ConcurrentDictionary <string, RegisteredBackend>();
        }
Пример #2
0
        public SidecarDevice(IZeroMQServerEndpoint endpoint, SidecarBackendDiscoverer[] backendDiscoverers)
            : base()
        {
            this.frontendEndpoint   = endpoint;
            this.backendDiscoverers = backendDiscoverers;

            this.identity = Guid.NewGuid().ToString().Replace("-", "").ToLowerInvariant();

            this.backendEndpointIds = new ConcurrentDictionary <string, ConcurrentQueue <string> >();
            this.backendEndpoints   = new ConcurrentDictionary <string, RegisteredBackend>();
        }
Пример #3
0
        public ForwarderDevice(IZeroMQServerEndpoint endpoint, IDiscoverer <IZeroMQClientEndpoint> backendDiscoverer)
            : base()
        {
            this.frontendEndpoint  = endpoint;
            this.backendDiscoverer = backendDiscoverer;

            this.identity = Guid.NewGuid().ToString().Replace("-", "").ToLowerInvariant();

            this.backendEndpointIds = new ConcurrentQueue <string>();
            this.backendEndpoints   = new ConcurrentDictionary <string, RegisteredBackend>();
        }
 public ZmqToInprocSplitterDevice(IZeroMQServerEndpoint endpoint)
     : base()
 {
     this.FrontendEndpoint = endpoint;
 }