Example #1
0
 public static void RegisterInMemorySagaRepository <T>(this IContainerRegistrar registrar)
     where T : class, ISaga
 {
     registrar.RegisterSingleInstance(new IndexedSagaDictionary <T>());
     registrar.RegisterSagaRepository <T, IndexedSagaDictionary <T>, InMemorySagaConsumeContextFactory <T>, InMemorySagaRepositoryContextFactory <T> >();
 }
 void IContainerRegistrar.RegisterSagaRepository <TSaga1>(Func <IConfigurationServiceProvider, ISagaRepository <TSaga1> > repositoryFactory)
 {
     _registrar.RegisterSagaRepository(repositoryFactory);
 }
 void ISagaRepositoryRegistrationConfigurator <TSaga> .RegisterFactoryMethod(Func <IConfigurationServiceProvider, ISagaRepository <TSaga> > repositoryFactory)
 {
     _registrar.RegisterSagaRepository(repositoryFactory);
 }