Raw Coding
Raw Coding
  • 487
  • 5 965 230
AsyncLocal and Scoped Services in ASP.NET Core
Learn about AsyncLocal class in c# and how you can use it as a scoped service in an asp.net core app.
Support my Work 🤝 www.patreon.com/raw_coding
Buy my Courses 📚 learning.raw-coding.dev
Buy my Merch 🛒 shop.raw-coding.dev
Join the Community 💬 discord.gg/Qp6hdq3
Tweet Tweet 📣 anton_t0shik
Tune in LIVE! 🎥 www.twitch.tv/raw_coding
#csharp #async
Переглядів: 1 849

Відео

ASP.NET Core Service Discovery
Переглядів 2,7 тис.21 день тому
.NET Aspire cam with a Service Discovery package that is available outside of the framework. In this video I build a peer to peer network using asp.net core servers and the service discovery mechanism. Support my Work 🤝 www.patreon.com/raw_coding Buy my Courses 📚 learning.raw-coding.dev Buy my Merch 🛒 shop.raw-coding.dev Join the Community 💬 discord.gg/Qp6hdq3 Tweet Tweet 📣 anton_t0...
Working with queues? Build a Message Sink
Переглядів 2,9 тис.Місяць тому
How to build a message sink in asp.net core c# that will improve your application performance. Support my Work 🤝 www.patreon.com/raw_coding Buy my Courses 📚 learning.raw-coding.dev Buy my Merch 🛒 shop.raw-coding.dev Join the Community 💬 discord.gg/Qp6hdq3 Tweet Tweet 📣 anton_t0shik Tune in LIVE! 🎥 www.twitch.tv/raw_coding #aspnetcore #aws #csharp
Neat trick for Scoped services in ASP.NET Core
Переглядів 3,1 тис.Місяць тому
In this video I demonstrate a small service you can create instead of reaching for an IServiceProvider or an IServiceScopeFactory whenever you need a new scope for your services. Support my Work 🤝 www.patreon.com/raw_coding Buy my Courses 📚 learning.raw-coding.dev Buy my Merch 🛒 shop.raw-coding.dev Join the Community 💬 discord.gg/Qp6hdq3 Tweet Tweet 📣 anton_t0shik Tune in LIVE! 🎥 ww...
Build your own dotnet watch tool
Переглядів 2,4 тис.2 місяці тому
Building your own dotnet watch tool that watches for changes in our ASP.NET Core application and restarts the application. Docs learn.microsoft.com/en-us/dotnet/api/system.io.filesystemwatcher?view=net-8.0 Support my Work 🤝 www.patreon.com/raw_coding Buy my Courses 📚 learning.raw-coding.dev Buy my Merch 🛒 shop.raw-coding.dev Join the Community 💬 discord.gg/Qp6hdq3 Tweet Tweet 📣 anto...
Why replace if statements with Objects
Переглядів 7 тис.2 місяці тому
Examples of when replacing if statements with objects yields better software. Support my Work 🤝 www.patreon.com/raw_coding Buy my Courses 📚 learning.raw-coding.dev Buy my Merch 🛒 shop.raw-coding.dev Join the Community 💬 discord.gg/Qp6hdq3 Tweet Tweet 📣 anton_t0shik Tune in LIVE! 🎥 www.twitch.tv/raw_coding #programming #csharp
What you should know about Threads in .NET
Переглядів 7 тис.2 місяці тому
Nobody is using threads directly anymore in the .NET world we all rather rely on asynchronous Tasks which are executed by threads which are managed by the thread pool, so the only useful thing about threads is knowing how they run your async tasks. Support my Work 🤝 www.patreon.com/raw_coding Buy my Courses 📚 learning.raw-coding.dev Buy my Merch 🛒 shop.raw-coding.dev Join the Community 💬 discor...
Building an ASP.NET Core App using Functional Programming
Переглядів 3,5 тис.3 місяці тому
How to structure your ASP.NET Core application using objects as functions. Delegates and Lambdas Explained: ua-cam.com/video/KaxNwGA9fiY/v-deo.html Support my Work 🤝 www.patreon.com/raw_coding Buy my Courses 📚 learning.raw-coding.dev Buy my Merch 🛒 shop.raw-coding.dev Join the Community 💬 discord.gg/Qp6hdq3 Tweet Tweet 📣 anton_t0shik Tune in LIVE! 🎥 www.twitch.tv/raw_coding #aspnetc...
Take control over ASP.NET Core
Переглядів 7 тис.3 місяці тому
How to leverage your basic knowledge of dependency injection to learn how the asp.net framework works. Support my Work 🤝 www.patreon.com/raw_coding Buy my Courses 📚 learning.raw-coding.dev Buy my Merch 🛒 shop.raw-coding.dev Join the Community 💬 discord.gg/Qp6hdq3 Tweet Tweet 📣 anton_t0shik Tune in LIVE! 🎥 www.twitch.tv/raw_coding #aspnetcore #csharp
Role Store implementation & Pull Request Workflow
Переглядів 1,2 тис.3 місяці тому
Implementing the IRoleStore to manage our roles, a couple of tests and adding a build and test github workflow. Support my Work 🤝 www.patreon.com/raw_coding Buy my Courses 📚 learning.raw-coding.dev Buy my Merch 🛒 shop.raw-coding.dev Join the Community 💬 discord.gg/Qp6hdq3 Tweet Tweet 📣 anton_t0shik Tune in LIVE! 🎥 www.twitch.tv/raw_coding Timestamps 00:00 Role Store 09:52 Adding Tes...
Publishing a Nuget Package the RIGHT way
Переглядів 1,7 тис.3 місяці тому
In this video I show how to gradually go from manually publishing a nuget package, to publishing the nuget package using github workflows triggered by tags. Support my Work 🤝 www.patreon.com/raw_coding Buy my Courses 📚 learning.raw-coding.dev Buy my Merch 🛒 shop.raw-coding.dev Join the Community 💬 discord.gg/Qp6hdq3 Tweet Tweet 📣 anton_t0shik Tune in LIVE! 🎥 www.twitch.tv/raw_coding...
ASP.NET Core Integration Testings Setup
Переглядів 2,2 тис.4 місяці тому
In this video I show how to setup integration testing using an xunit project with asp.net core. We then write some simple tests for our nuget package and find some libraries! Support my Work 🤝 www.patreon.com/raw_coding Buy my Courses 📚 learning.raw-coding.dev Buy my Merch 🛒 shop.raw-coding.dev Join the Community 💬 discord.gg/Qp6hdq3 Tweet Tweet 📣 anton_t0shik Tune in LIVE! 🎥 www.tw...
Building an ASP.NET Core Nuget Package
Переглядів 3,9 тис.4 місяці тому
Introduction and setup of an ASP.NET Core open source project, In this first part we setup minimal integration of Identity Framework with Marten. Support my Work 🤝 www.patreon.com/raw_coding Buy my Courses 📚 learning.raw-coding.dev Buy my Merch 🛒 shop.raw-coding.dev Join the Community 💬 discord.gg/Qp6hdq3 Tweet Tweet 📣 anton_t0shik Tune in LIVE! 🎥 www.twitch.tv/raw_coding Source: gi...
How to escape Tutorial Hell, WITH PROOF!
Переглядів 3,4 тис.4 місяці тому
In this video I explain my 2 step approach to escaping tutorial hell, as well as demonstrate it by learning new programming language syntax. Support my Work 🤝 www.patreon.com/raw_coding Buy my Courses 📚 learning.raw-coding.dev Buy my Merch 🛒 shop.raw-coding.dev Join the Community 💬 discord.gg/Qp6hdq3 Tweet Tweet 📣 anton_t0shik Tune in LIVE! 🎥 www.twitch.tv/raw_coding Timestamps 00:0...
Reviewing JetBrains Fleet after 2 Years
Переглядів 13 тис.4 місяці тому
Reviewing Fleet 2 years after early access release. Support my Work 🤝 www.patreon.com/raw_coding Buy my Courses 📚 learning.raw-coding.dev Buy my Merch 🛒 shop.raw-coding.dev Join the Community 💬 discord.gg/Qp6hdq3 Tweet Tweet 📣 anton_t0shik Tune in LIVE! 🎥 www.twitch.tv/raw_coding #fleet
.NET Developer miserably fails at Laravel PHP
Переглядів 12 тис.4 місяці тому
.NET Developer miserably fails at Laravel PHP
ASP.NET Core tutorial for Beginners | NEW .NET 8
Переглядів 15 тис.5 місяців тому
ASP.NET Core tutorial for Beginners | NEW .NET 8
Synchronise using Queues or Semaphores?
Переглядів 3,1 тис.5 місяців тому
Synchronise using Queues or Semaphores?
Why I think .NET Aspire is Overhyped
Переглядів 12 тис.5 місяців тому
Why I think .NET Aspire is Overhyped
Testing Localisation in ASP.NET Core
Переглядів 2 тис.5 місяців тому
Testing Localisation in ASP.NET Core
New .NET 8 Features for Performance
Переглядів 4,6 тис.6 місяців тому
New .NET 8 Features for Performance
Constraint Oriented Programming in C#
Переглядів 3,5 тис.6 місяців тому
Constraint Oriented Programming in C#
Meta Programming is King
Переглядів 4,4 тис.6 місяців тому
Meta Programming is King
Interfaces vs Abstract Classes
Переглядів 12 тис.6 місяців тому
Interfaces vs Abstract Classes
Simplest way to authenticate your Blazor App
Переглядів 6 тис.8 місяців тому
Simplest way to authenticate your Blazor App
Worried about Moq? Build your own Mocking library
Переглядів 4,9 тис.9 місяців тому
Worried about Moq? Build your own Mocking library
Clojure for C# Developers
Переглядів 4,5 тис.9 місяців тому
Clojure for C# Developers
My take on HTMX with ASP.NET Core
Переглядів 10 тис.9 місяців тому
My take on HTMX with ASP.NET Core
Example of a custom DSL in C#
Переглядів 2,7 тис.9 місяців тому
Example of a custom DSL in C#
Workplace advice for Programmers (Q&A)
Переглядів 3,1 тис.9 місяців тому
Workplace advice for Programmers (Q&A)

КОМЕНТАРІ

  • @mt89vein
    @mt89vein 14 годин тому

    This is called ambient context, and you should be careful with it. It may cause problems with testing and debugging

  • @kirillo3532
    @kirillo3532 День тому

    Шикарный материал) спасибо, что освещаешь такие темы) Причем очень доступно и легко для усвоения темы)

  • @trudyreiser8075
    @trudyreiser8075 День тому

    You go way too fast

  • @cocoscacao6102
    @cocoscacao6102 День тому

    Great video again. Never heard of AsyncLocal up until now.

  • @piotrc966
    @piotrc966 2 дні тому

    Really great!

  • @jamesarceri5540
    @jamesarceri5540 2 дні тому

    Good stuff as always sir.

  • @binoypatel09
    @binoypatel09 2 дні тому

    Nicely explained, thanks for the great content

  • @urzalukaskubicek9690
    @urzalukaskubicek9690 2 дні тому

    The white screen when you switch to browser is killing me

    • @RawCoding
      @RawCoding День тому

      Don’t leave the house or the sun might kill you

    • @urzalukaskubicek9690
      @urzalukaskubicek9690 21 годину тому

      @@RawCoding I only leave my house in the night. Days are for sleeping.

  • @nullentrophy
    @nullentrophy 2 дні тому

    So, it behaves like this because http requests are handled asynchronously? -If they were handled synchronously this wouldn't be the behavior?- If they were handled synchronously, it would not have had scoped behavior? I am confused. It is unholy magic

    • @nullentrophy
      @nullentrophy 2 дні тому

      Checked out the implementation of AsyncLocal. It's just glorified Dictionary wrapper LOL

  • @thaibui1829
    @thaibui1829 2 дні тому

    thank you JESUS !!!!!!!!

  • @diegoronkkomaki6858
    @diegoronkkomaki6858 2 дні тому

    Good stuff, learned a lot.

  • @ivandrofly
    @ivandrofly 2 дні тому

    “Zeus! Your Son Has Returned. I Bring The Destruction Of Olympus!”

  • @jonyfrany1319
    @jonyfrany1319 3 дні тому

    permission block

  • @md.redwanhossain6288
    @md.redwanhossain6288 3 дні тому

    One question, when using docker, the DPAPI key needs to be saved in the DB. The secret key stores as plain text. To encrypt it, the MS docs says I need an certificate. I wonder if it is possible to use AES encryption to encrypt that key? This will make the stuff very simple.

  • @davidpccode
    @davidpccode 4 дні тому

    Thank youuuuuuuu

  • @carstenvoss6169
    @carstenvoss6169 4 дні тому

    I am asking myself, what the test tests. In the second example, you test that the HttpClient returns a response that you provided

    • @RawCoding
      @RawCoding 3 дні тому

      I am showing how to mock an httpclient for testing, I am not testing anything so you shouldn’t be asking yourself that because the video is not about writing a test.

  • @XinyaTang-oz5of
    @XinyaTang-oz5of 5 днів тому

    Hi! I want to know which previous episode I need to watch before going through this one! I have basic flask and web scrapping knowledge but got confused at around 7 mins of this video.

  • @tanoryjakaperdana1419
    @tanoryjakaperdana1419 6 днів тому

    We need to keep pass parameter to the contructor..

  • @frankhaugen
    @frankhaugen 6 днів тому

    It's for orchestration yet working with multiple repos isn't supported... How do I get this set up for my 134 repos with services, IDPs, cache providers etc?

  • @user-ox6qj4zh9s
    @user-ox6qj4zh9s 7 днів тому

    I tried the fetch thing but it does not redirect to google

  • @user-py2xi2gf8z
    @user-py2xi2gf8z 7 днів тому

    that content is a treasure

  • @jimh3595
    @jimh3595 8 днів тому

    Good stuff.

  • @user-py2xi2gf8z
    @user-py2xi2gf8z 8 днів тому

    Thank you so much.

  • @AnsisPlepis
    @AnsisPlepis 9 днів тому

    6:56 the software engineers mindset, love that! amazing videos as always

  • @jpaulc441
    @jpaulc441 9 днів тому

    I escaped it by completely giving up and accepting it is literally impossible for me to learn how to code. People always say "you can't learn from a tutorial! write you own little programs and you'll learn new things!" That might sound like good advice but I can't even do that. The tutorials didn't teach me enough to do anything other than some math functions, changing a variable and "hello world!" I got so frustrated after watching a tutorial video where the guy in it said "coding is easy! It's fun!" that I lost my temper, punched a wall and broke my hand. I couldn't even type (or wipe) after that. That's when I finally gave up.

  • @tuberklz
    @tuberklz 10 днів тому

    somewhat turning your curiosity to a programming kata

  • @ognjenvojnovic9778
    @ognjenvojnovic9778 10 днів тому

    You f*ng rock ... this is the simplest explanation by far! Thanks man ...

  • @stickyamp5996
    @stickyamp5996 11 днів тому

    This video was really cool. Easy to follow and understood very well oauth2. Can you do the same (if not already done) with saml, openId connect and pretty much any other popular auth protocol? I'd love to watch that.

  • @stickyamp5996
    @stickyamp5996 11 днів тому

    Hey. Great Videos Thank you!! (A little bit hard to follow, but still thanks) I was wondering if there was some kind of playground/test website that provides you easy access to SSO, OAuth2 etc in order to create yourself a toy app to test it. Do you know any web like that?

  • @kimsung2384
    @kimsung2384 11 днів тому

    Really difficult to see the code when watched on phone

  • @bertan7
    @bertan7 12 днів тому

    Awesome, thank you

  • @DJohn001
    @DJohn001 12 днів тому

    @RawCoding Could you make an example video about what you didn't like about aspire. A few months ago you made a video about Aspire wherein you in short said that that is "overhyped" and wherein you created a view of a walled garden. Could you give some practice examples of what kind of freedom you lose with Aspire?

  • @Azttor
    @Azttor 14 днів тому

    🤍

  • @stickyamp5996
    @stickyamp5996 14 днів тому

    My head... It hurts

  • @emmanueladebiyi2109
    @emmanueladebiyi2109 15 днів тому

    Great intro into expression trees. Trust you to make the hard stuff easy 🙌🏼

  • @johnmaloney1681
    @johnmaloney1681 16 днів тому

    Surgeont?

  • @kopilkaiser8991
    @kopilkaiser8991 18 днів тому

    I really like your portrait at the top out of the three :) Good taste brother

  • @user-rx8oh2jm1y
    @user-rx8oh2jm1y 19 днів тому

    NICE VIDEO!!

  • @varunaggarwal7126
    @varunaggarwal7126 19 днів тому

    how the hell do we remember which method takes which parameter, .net is so much about mugging what microsoft has done.

    • @RawCoding
      @RawCoding 19 днів тому

      Any language that has skds or libraries will be like that regardless of who makes it.

  • @jamesterstudio4812
    @jamesterstudio4812 19 днів тому

    oHey Great video, did you create a github for this coding tutorial?

  • @CodecNomad
    @CodecNomad 20 днів тому

    Light years from even a simple nvim config

  • @shashikantnipanikar860
    @shashikantnipanikar860 20 днів тому

    That's a really great explanation. I think the interviewer wanted this from me. 😅

  • @darkomartinovic1955
    @darkomartinovic1955 21 день тому

    What about Lazy? public sealed class Singleton { private static readonly Lazy<Singleton> lazy = new Lazy<Singleton>(() => new Singleton()); public static Singleton Instance { get { return lazy.Value; } } private Singleton() { } }

  • @piotrc966
    @piotrc966 22 дні тому

    Very interesting.

  • @JB-tq1ly
    @JB-tq1ly 23 дні тому

    thanks for the great content !

  • @andrewiecisa2907
    @andrewiecisa2907 23 дні тому

    Interesting deep dive into this new feature. Thanks! I'm quite interested in Aspire, particularly in the dashboard if you want an idea for future video 😅

  • @mrjamiebowman
    @mrjamiebowman 23 дні тому

    .NET Aspire is a major game changer. I see that taking off. I love it. I especially use it for the Distributed Tracing and Metrics.. Really helps with implementing OpenTelemetry.

  • @user-dg5qy3cq8m
    @user-dg5qy3cq8m 23 дні тому

    Thank you for the great explanation and how to implement it

  • @cookiebinary
    @cookiebinary 25 днів тому

    Very unpleasant to watch this video :D Trying a new language and framework with old unfashionable and bad habits ..