/// <summary> /// Initializes a new instance of the <see cref="RequestBus"/> class /// with a custom use case factory. /// </summary> public RequestBus(UseCaseFactoryBase useCaseFactory) { this.useCaseFactory = useCaseFactory ?? throw new ArgumentNullException(nameof(useCaseFactory)); }
/// <summary> /// Initializes a new instance of the <see cref="RequestBus"/> class /// with a default implementation of the use case factory. /// </summary> public RequestBus() { useCaseFactory = new DefaultUseCaseFactory(); }