public void Register(IContainerRegistrar registrar) { registrar.Register(provider => { var bus = provider.GetRequiredService <IBus>(); var sendEndpointProvider = provider.GetRequiredService <ISendEndpointProvider>(); return(sendEndpointProvider.CreateAmazonSqsMessageScheduler(bus.Topology)); }); }
public void Register(IContainerRegistrar registrar) { registrar.Register(provider => { var bus = provider.GetRequiredService <IBus>(); var publishEndpoint = provider.GetRequiredService <IPublishEndpoint>(); return(publishEndpoint.CreateMessageScheduler(bus.Topology)); }); }
void IContainerRegistrar.Register <T, TImplementation>() { _registrar.Register <T, TImplementation>(); }
void exec <T>(IContainerRegistrar registrar) { registrar.Register <T>(); }
void exec(IContainerRegistrar registrar, Type type) { registrar.Register(type); }