public void Initialise(ITypeRegistry registry) { registry.RegisterSingleton<IUserRepository, UserRepository>(); registry.RegisterSingleton<IContactFeedRepository, ContactFeedRepository>(); registry.RegisterSingleton<IContactRepository, ContactRepository>(); registry.RegisterType<IProcess, InMemoryRepositoryProcess>("InMemoryRepositoryProcess"); }
public void Initialise(ITypeRegistry registry) { registry.RegisterSingleton<IEventStoreClient, EventStoreClient>(); registry.RegisterSingleton<IEventStoreConnectionFactory, EventStoreConnectionFactory>(); registry.RegisterSingleton<Accounts.IAccountContactRefresher, Accounts.AccountContactRefresher>(); registry.RegisterSingleton<IContactFeedRepository, Contacts.EventStoreContactFeedRepository>(); registry.RegisterSingleton<IContactRepository, Contacts.EventStoreContactFeedRepository>();//HACK: The EventStore shouldn't be doing this work. //registry.RegisterType<IAccountContactProvider, Contacts.EventStoreAccountContactProvider>("EventStoreAccountContactProvider"); registry.RegisterSingleton<IUserRepository, Users.UserRepository>(); registry.RegisterType<IProcess, EventStoreProcess>("EventStoreProcess"); }