Git Product home page Git Product logo

net3-part1's Introduction

NET Core 3 Part 1

Background

These sessions will focus mainly on how to use NET Core to produce solid code following various well known patterns and practices. We will not have any Powerpoints or other kind of presentation material except plain code samples because these sessions are only about, coding!

NET Core 3.x Extensions library which is the current LTS version has been heavily refactored since versions 2.x and these sessions are for all of you that have used the older versions but also if you haven't been in contact at all with NET Core before.

In this first session I will show you the basics of some of the building blocks included in NET Core Extensions to get you up to speed using them.

In session two we will have a deeper look into NET Core. We will look at Entity Framework Core using Code First and also how to write your own extensions in a simple way.

Session three we will play around a bit with what we have seen and do some kind of rounding up of what you have seen. Finally we will have a brief look at NET 5 and what differs from earlier versions, we will also look at the future of NET and discuss Microsoft's plans regarding updates and lifecycle.

Demos

  1. Various Host samples

    These samples are here just to show a variety of different applications you can make by using Microsoft.Extensions just to show their common base.

  2. Basics in a simple Console

    ConsoleSample

    Console sample of how to make configuration, logging and dependency injection available in it's simplest way

    ConsolePropertyInjectionSample

    Console sample of how to handle injection in classes that requires empty constructor for some reason.

    ConsoleScopesSample

    Console sample showing the difference between Scoped, Transient and Singleton lifecycles.

  3. Basics in HostedService

    IHostedServiceSample

    Using the base for all HostedServices, IHostedService and comparing it with BackgroundService base class.

    HostApplicationLifetimeSample

    The correct way of detecting the states of the host and how to get signalled when anything changes

  4. Configuration samples

    ConfigurationProviders

    How the configuration is implemented in NET Core and NET 5

    StaticConfiguration

    Injecting configuration values the correct way by using IOptions and IOptionsSnapshot

    MonitoredConfiguration

    Injecting configuration values the correct dynamic way by using IOptionsMonitor

  5. Logging samples

    UsingSerilog

    How to change the base logger to anything that interacts correctly with Microsoft.Extensions, in this case Serilog

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.