public override void Configure(Container container) { Plugins.Add(new AuthFeature(() => new AuthUserSession(), new IAuthProvider[] { new BasicAuthProvider() })); Plugins.Add(new RegistrationFeature()); container.Register<ICacheClient>(new MemoryCacheClient()); var userRep = new BasicAuthImpl(); container.Register<IUserAuthRepository>(userRep); Routes .Add<MessageReceived>("/SmsIncoming"); EndpointConfig.ConfigureNServiceBus(); Container.Register(b => EndpointConfig.Bus); }
public override void Configure(Container container) { Plugins.Add(new AuthFeature(() => new AuthUserSession(), new IAuthProvider[] { new BasicAuthProvider() })); Plugins.Add(new RegistrationFeature()); container.Register <ICacheClient>(new MemoryCacheClient()); var userRep = new BasicAuthImpl(); container.Register <IUserAuthRepository>(userRep); Routes .Add <MessageReceived>("/SmsIncoming"); EndpointConfig.ConfigureNServiceBus(); Container.Register(b => EndpointConfig.Bus); }