Esempio n. 1
0
 //private readonly IMediator mediator;
 public TestService(IDemo _demo, /*IMediator _mediator,*/ IHangfireClient _hangfireClient)
 {
     hangfireClient = _hangfireClient;
     demo           = _demo;
     //mediator = _mediator;
 }
Esempio n. 2
0
 public ValuesController(IHangfireClient hangfireClient)
 {
     _hangfireClient = hangfireClient;
 }
Esempio n. 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>();
        }