示例#1
0
        public BrokerProcessor(
            IReadableChannel <ITransportConnection> incomingConnections,
            IProtocolSerializerFactory serializerFactory,
            IInteropContext interopContext)
        {
            _incomingConnections = incomingConnections;
            var registryService = new RegistryService(interopContext.RegistryProvider);
            var protocol        = new ProtocolImplementation(DefaultProtocolMessageFactory, serializerFactory);

            _appLifecycleManager   = interopContext.AppLifecycleManager;
            _authenticationHandler = new AuthenticationHandler(interopContext.AppLifecycleManager, protocol, registryService);
            _clientRequestHandler  = new ClientRequestHandler(interopContext.AppLifecycleManager, protocol, registryService, interopContext.InvocationEventProvider, interopContext.ContextLinkageManager);
        }
        public BrokerProcessor(
            IReadableChannel <ITransportConnection> incomingConnections,
            IRegistryProvider registryProvider,
            IProtocolSerializerFactory serializerFactory,
            IAppLifecycleManager appLifecycleManager)
        {
            _incomingConnections = incomingConnections;
            _appLifecycleManager = appLifecycleManager;
            var registryService = new RegistryService(registryProvider);
            var protocol        = new ProtocolImplementation(DefaultProtocolMessageFactory, serializerFactory);

            _authenticationHandler = new AuthenticationHandler(appLifecycleManager, protocol, registryService);
            _clientRequestHandler  = new ClientRequestHandler(appLifecycleManager, protocol, registryService);
        }