Exemplo n.º 1
0
 /// <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));
 }
Exemplo n.º 2
0
 /// <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();
 }