Application ready before dependency injction
This commit is contained in:
@ -20,6 +20,7 @@ namespace YouTubeViewers.EntityFramework.Commands
|
||||
|
||||
public async Task Execute(YouTubeViewer youTubeViewer)
|
||||
{
|
||||
|
||||
using (YouTubeViewersDbContext context = _contextFactory.Create())
|
||||
{
|
||||
YouTubeViewerDto youTubeViewerDto = new YouTubeViewerDto()
|
||||
|
||||
@ -21,7 +21,6 @@ namespace YouTubeViewers.EntityFramework.Commands
|
||||
{
|
||||
using (YouTubeViewersDbContext context = _contextFactory.Create())
|
||||
{
|
||||
await Task.Delay(5000);
|
||||
YouTubeViewerDto youTubeViewerDto = new YouTubeViewerDto()
|
||||
{
|
||||
Id = id,
|
||||
|
||||
@ -20,6 +20,7 @@ namespace YouTubeViewers.EntityFramework.Commands
|
||||
|
||||
public async Task Execute(YouTubeViewer youTubeViewer)
|
||||
{
|
||||
|
||||
using (YouTubeViewersDbContext context = _contextFactory.Create())
|
||||
{
|
||||
YouTubeViewerDto youTubeViewerDto = new YouTubeViewerDto()
|
||||
|
||||
Reference in New Issue
Block a user