.Net Core application with background Thread on Docker
Running a .NET Core Console application with background continuous thread in Docker container is not the same as running in a Windows machine. In this video, I demonstrate how to do this from my experience.
If we create a project which runs a background thread; and we keep the main thread alive using Console.ReadLine(), the docker container does not regard that. Meaning, when the .NET Core application runs in docker; and the runtime encounters the Console.ReadLine(), it just continues to execute forward. Instead of stopping for user input.
Blog url: https://dotnetcorecentral.com/blog/docker-running-background-thread/
Видео .Net Core application with background Thread on Docker канала DotNet Core Central
If we create a project which runs a background thread; and we keep the main thread alive using Console.ReadLine(), the docker container does not regard that. Meaning, when the .NET Core application runs in docker; and the runtime encounters the Console.ReadLine(), it just continues to execute forward. Instead of stopping for user input.
Blog url: https://dotnetcorecentral.com/blog/docker-running-background-thread/
Видео .Net Core application with background Thread on Docker канала DotNet Core Central
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Learn Docker in 20 Minutes](https://i.ytimg.com/vi/wCTTHhehJbU/default.jpg)
![C# Tutorial: Events/Event Handlers](https://i.ytimg.com/vi/gYC-9PUGwDI/default.jpg)
![C# Channels Explained (System.Threading.Channels)](https://i.ytimg.com/vi/E0Ld7ZgE4oY/default.jpg)
![Async/Await an Introduction (Asynchronous programming in .NET 5.0)](https://i.ytimg.com/vi/isFZtqnkFZE/default.jpg)
![Dependency Injection Service Lifetimes (In .NET Core and .NET 5.0)](https://i.ytimg.com/vi/7aismJa9P1k/default.jpg)
![Docker for NET Developers: Dockerfile Basics](https://i.ytimg.com/vi/grbc8mevLRc/default.jpg)
![C# Threads, Tasks, Multi-threading & UI Cross-threading](https://i.ytimg.com/vi/XXg9g56FS0k/default.jpg)
![An Introduction to AWS DynamoDB (Accessing DynamoDB data from .NET Core AWS Lambda Function)](https://i.ytimg.com/vi/9rlKByxBLaY/default.jpg)
![Create Docker Containers From .Net Code](https://i.ytimg.com/vi/OWwqaHg-cVo/default.jpg)
![c# (Csharp) threading interview question:- What is thread,background thread and foreground thread ?](https://i.ytimg.com/vi/Fzckqczmgd0/default.jpg)
![How to Implement Dependency Injection (DI) in .net Core Console Application](https://i.ytimg.com/vi/5tk6OhH4VIg/default.jpg)
![.Net Core Console Application in Docker](https://i.ytimg.com/vi/6QiR0O5Irzs/default.jpg)
![C# Async / Await - Make your app more responsive and faster with asynchronous programming](https://i.ytimg.com/vi/2moh18sh5p4/default.jpg)
![c# wait for thread to finish without blocking](https://i.ytimg.com/vi/SgHYVPKJRX8/default.jpg)
![Delegate and Event in C# (An introduction for new .NET Developers)](https://i.ytimg.com/vi/xr2C4f5bRZM/default.jpg)
![Docker - Demo CMD vs ENTRYPOINT](https://i.ytimg.com/vi/6lcYyo9e7-0/default.jpg)
![Real-time Web application with ASPNet Core SignalR](https://i.ytimg.com/vi/EFILQUIpKGU/default.jpg)
![Reactive Extensions [An Introduction for .NET Developers]](https://i.ytimg.com/vi/Fyzba41LaC4/default.jpg)
![Introduction to building AWS Lambda using .NET Core 3.1 (Introduction for .NET developers)](https://i.ytimg.com/vi/GZ8_anxgpK8/default.jpg)
![Singleton Design Pattern (The pitfalls to keep in mind) [An Introduction for .NET Developers]](https://i.ytimg.com/vi/HrUZaEERfiY/default.jpg)