Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var accountingRobot = new AccountingRobot();
            var s = new CancellationTokenSource();

            accountingRobot.DoProcessAsync(s.Token).Wait();
        }
 public HomeController(IBackgroundTaskQueue queue,
                       IHostingEnvironment hostingEnvironment,
                       IApplicationLifetime appLifetime,
                       ILogger <HomeController> logger,
                       IConfiguration configuration,
                       IHubContext <JobProgressHub> hubContext,
                       AccountingRobot accountingRobot)
 {
     Queue = queue;
     _hostingEnvironment = hostingEnvironment;
     _appLifetime        = appLifetime;
     _logger             = logger;
     _appConfig          = configuration;
     _hubContext         = hubContext;
     _accountingRobot    = accountingRobot;
 }