示例#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));
 }
示例#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();
 }