protected void SetUpProvider() { _ioDispatcher = new IODispatcher(_bus, new PublishEnvelope(_bus)); _bus.Subscribe(_ioDispatcher.BackwardReader); _bus.Subscribe(_ioDispatcher.ForwardReader); _bus.Subscribe(_ioDispatcher.Writer); _bus.Subscribe(_ioDispatcher.StreamDeleter); _bus.Subscribe(_ioDispatcher); PasswordHashAlgorithm passwordHashAlgorithm = new StubPasswordHashAlgorithm(); _internalAuthenticationProvider = new InternalAuthenticationProvider(_ioDispatcher, passwordHashAlgorithm, 1000); _bus.Subscribe(_internalAuthenticationProvider); }
protected void SetUpProvider() { _ioDispatcher = new IODispatcher(_bus, new PublishEnvelope(_bus)); _bus.Subscribe(_ioDispatcher.BackwardReader); _bus.Subscribe(_ioDispatcher.ForwardReader); _bus.Subscribe(_ioDispatcher.Writer); _bus.Subscribe(_ioDispatcher.StreamDeleter); _bus.Subscribe(_ioDispatcher); PasswordHashAlgorithm passwordHashAlgorithm = new StubPasswordHashAlgorithm(); _internalAuthenticationProvider = new InternalAuthenticationProvider(_ioDispatcher, passwordHashAlgorithm, 1000); _bus.Subscribe(_internalAuthenticationProvider); }
protected void SetUpProvider() { _ioDispatcher = new IODispatcher(_bus, new PublishEnvelope(_bus)); _bus.Subscribe(_ioDispatcher.BackwardReader); _bus.Subscribe(_ioDispatcher.ForwardReader); _bus.Subscribe(_ioDispatcher.Writer); _bus.Subscribe(_ioDispatcher.StreamDeleter); _bus.Subscribe(_ioDispatcher.Awaker); _bus.Subscribe <IODispatcherDelayedMessage>(_ioDispatcher); _bus.Subscribe <ClientMessage.NotHandled>(_ioDispatcher); PasswordHashAlgorithm passwordHashAlgorithm = new StubPasswordHashAlgorithm(); _internalAuthenticationProvider = new InternalAuthenticationProvider(_bus, _ioDispatcher, passwordHashAlgorithm, 1000, false); _bus.Subscribe(_internalAuthenticationProvider); }