public void AddServiceClient(Action <IServiceClientConfigurator> configure = default) { var options = new ServiceClientOptions(); _containerRegistrar.RegisterSingleInstance(options); ClientFactoryProvider = ServiceClientClientFactoryProvider; }
public void Register(IContainerRegistrar registrar) { registrar.RegisterSingleInstance(provider => provider.GetRequiredService <IBus>().CreateActiveMqMessageScheduler()); }
void IContainerRegistrar.RegisterSingleInstance <T>(Func <IConfigurationServiceProvider, T> factoryMethod) { _registrar.RegisterSingleInstance(factoryMethod); }
public void Register(IContainerRegistrar registrar) { registrar.RegisterSingleInstance(provider => provider.GetRequiredService <IBus>().CreateMessageScheduler(_schedulerEndpointAddress)); }
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> >(); }