public static ICommandService UsingRabbitMq(this ICommandServiceFactoryExtensionHook extensionHook, IBusService busService, Action <IRabbitMqCommandServiceConfiguration> action) { IRabbitMqCommandServiceConfiguration configuration = new RabbitMqCommandServiceConfiguration(); action(configuration); return(new RabbitMqCommandService(busService, configuration)); }
public static ICommandService UsingInMemory(this ICommandServiceFactoryExtensionHook extensionHook, IBusService busService, Action <IInMemoryCommandServiceConfiguration> action) { IInMemoryCommandServiceConfiguration configuration = new InMemoryCommandServiceConfiguration(); action(configuration); return(new InMemoryCommandService(busService, configuration)); }