Example #1
0
        private void OnStarted()
        {
            var task = fooService.HelloAsync();

            task.Wait();
            logger.LogDebug($"async result = {task.Result}");

            dbContext.ClearEntryState();

            var result = fooService.Hello();

            logger.LogDebug($"sync result = {result}");

            this.appLifetime.StopApplication();
        }