예제 #1
0
 //private readonly IMediator mediator;
 public TestService(IDemo _demo, /*IMediator _mediator,*/ IHangfireClient _hangfireClient)
 {
     hangfireClient = _hangfireClient;
     demo           = _demo;
     //mediator = _mediator;
 }
예제 #2
0
 public ValuesController(IHangfireClient hangfireClient)
 {
     _hangfireClient = hangfireClient;
 }
예제 #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BackgroundJobQueue"/> class.
        /// </summary>
        /// <param name="client">The hangfire client.</param>
        public BackgroundJobQueue(IHangfireClient client)
        {
            this.client = client;

            jobs = new ConcurrentBag <Job>();
        }