Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть 05 - .NET Core Console Application - Using Dependency Injection

  • Afresh Developer
  • 2021-07-31
  • 4007
05 - .NET Core Console Application - Using Dependency Injection
  • ok logo

Скачать 05 - .NET Core Console Application - Using Dependency Injection бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно 05 - .NET Core Console Application - Using Dependency Injection или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку 05 - .NET Core Console Application - Using Dependency Injection бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео 05 - .NET Core Console Application - Using Dependency Injection

Slide 01
Let's head on over to the Worker.cs file so that we can begin using Dependency Injection.

We'll create a constructor method so that the Dependency Injection Service can inject any dependent objects we need in our Worker Class.

We'll inject Iconfiguration and bring in the namespace. While we're here we might as well create a class member for the property.

We'll also inject Ilogger which we'll also need to bring in the namespace for that. We'll have Visual Studio create the member for us.

Let's remove the Console Write Line and replace it with a Logging Statement to make sure the injection service is working as expected.

Let's run it and see if it works!

Hot Dog!!! Gotta love it when things just work out-of-box!!!

In the next video we'll see how we can use configuration settings from an appsetting.json file.

I'll see you there!

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]