//Use dependency injection and singleton pattern for the ShelfController constructor
 public ShelfController(IBackgroundShelfQueue shelfQueue)
 {
     this.shelfQueue = shelfQueue;
 }
Пример #2
0
 public ClientNotifier(IBackgroundShelfQueue shelfQueue,
                       IHubContext <ClientUpdateHub> hubContext)
 {
     this.shelfQueue = shelfQueue;
     this.hubContext = hubContext;
 }
Пример #3
0
 public HttpModuleClient(IBackgroundShelfQueue shelfQueue)
 {
     this.shelfQueue = shelfQueue;
 }
 public InProcShelfDataGenerator(IBackgroundShelfQueue shelfQueue, ILogger <InProcShelfDataGenerator> logger)
 {
     this.shelfQueue = shelfQueue;
     _logger         = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Пример #5
0
 public ClientUpdateHub(IBackgroundShelfQueue shelfQueue)
 {
     this.shelfQueue = shelfQueue;
 }
 public InProcShelfDataGenerator(IBackgroundShelfQueue shelfQueue)
 {
     this.shelfQueue = shelfQueue;
 }
 public HttpModuleClient(IBackgroundShelfQueue shelfQueue, ILogger <HttpModuleClient> logger)
 {
     this.shelfQueue = shelfQueue;
     _logger         = logger ?? throw new ArgumentNullException(nameof(logger));
 }