- 61
- 255 167
NET Programmer
Poland
เข้าร่วมเมื่อ 1 พ.ย. 2020
I provide quality programming tutorials and cover new trends, mostly around .NET Technology.
Introduction to SignalR in C# (ASP.NET Core)
In this video I explain how to use SignalR in ASP.NET Core web application.
Microsoft Docs: learn.microsoft.com/en-us/aspnet/core/tutorials/signalr?view=aspnetcore-8.0&tabs=visual-studio
Microsoft Docs: learn.microsoft.com/en-us/aspnet/core/tutorials/signalr?view=aspnetcore-8.0&tabs=visual-studio
มุมมอง: 554
วีดีโอ
HttpClient in C# (REST API Requests)
มุมมอง 1.2Kปีที่แล้ว
In this video I explain how to use HttpClient class to send REST API requests (GET, POST, PATCH, DELETE) in C# applications.
Semaphores in C# (SemaphoreSlim and Semaphore)
มุมมอง 6Kปีที่แล้ว
In this video I explain what are the semaphores in C# and two types of semaphores: Semaphore and SemaphoreSlim. I also show exaples of how to use both of them in practice.
Method overriding and overloading in C#
มุมมอง 671ปีที่แล้ว
In this video I explain the method overloading and overriding in C#.
Logging with Log4Net in C#
มุมมอง 9Kปีที่แล้ว
In this video I explain how to implement logging inside C# console application using Log4Net nugget package.
Using SpecFlow for BDD testing in C#
มุมมอง 8Kปีที่แล้ว
In this video I explain how to use SpecFlow to create BDD (Behaviour-Driven Development) tests in C#.
Repository Pattern in C#
มุมมอง 6Kปีที่แล้ว
In this video I explain how to use repository pattern in C#.
Partial Class and Method in C#
มุมมอง 4.4Kปีที่แล้ว
In this video I explain the partial classes and methods in C#.
Strategy Design Pattern in C#
มุมมอง 1.6K2 ปีที่แล้ว
In this video I explain the strategy design pattern using C# programming language. I will also show a practical example of it's usage.
Microservices vs Monolith in C#: Theory
มุมมอง 6382 ปีที่แล้ว
In this video I explain the differences between monolithic and microservices architecture.
CQRS using MediatR in C#
มุมมอง 6K2 ปีที่แล้ว
In this video I explain how to implement the CQRS (command and query responsibility segregation) patter using MediatR package in C#. I show how to create queries, commands and handlers.
Clean architecture in C# (onion architecture)
มุมมอง 6K2 ปีที่แล้ว
In this video I explain how to use the clean architecture (also known as onion architecture) in C# using the example of ASP.NET Core web application.
Access modifiers in C#
มุมมอง 3752 ปีที่แล้ว
In this video I explain the access modifiers in C# both for classes and methods. I explain the public, private, protected, internal keywords for both classes and methods.
FluentValidation in C#
มุมมอง 6K2 ปีที่แล้ว
In this video I explain the FluentValidation nugget package in C# console application.
Reading And Writing Into Text File in C#
มุมมอง 2.6K2 ปีที่แล้ว
Reading And Writing Into Text File in C#
Dependency Injection in ASP.NET Core API
มุมมอง 2492 ปีที่แล้ว
Dependency Injection in ASP.NET Core API
So you absolutely didn't show the example of the semaphore being used across multiple processes... In your example, both do the the exact same thing...
Great explanation, thank you 👍 ...
Bro, I was heading off to bed and just discovered this channel. I’ve watched like 4 videos, they’re so straightforward and make me understand everything.
Good video with clear explanation
Hi and thanks for the video.The advantage of SignalR is that the client does not always have to ask whether a new message is available. What should I do if the client only logs on to the server once and then automatically receives updates without any action on its part?
SignalR can be used only through the browser. So as long as the user has the web site opened he can receive the messages from the server. If you need to send the messages to the client outside of the browser, you would have to build some sort of background process (in c# for example).
@@net-programmer that's what I thought. But I don't quite understand the flow...
@@heischono4917 I didn't cover this topic yet, so I can only recommend to you to do research on things like "client server app in c# (tcp/ip)", and after that "background process in c#".
Is SpecFlow still supported ?
It seems to be, even though last commit on GitHub is from Feb 2023.
Yes, I am working on a .NET 6.0 project and using it for BDD testing 👍!
@@fodecissokho9918 cool!
❤
Thank you!
Thank you. Easiest explanation by far
thanks
InvoiceProvider obj = new InternalInvoiceProvider(); obj.PrintInvoice(); obj = new ExternalInvoiceProvider(); obj.PrintInvoice(); It will also execute two PrintInvoice method of two different class with single object, then why we have to follow all. Please explain, waiting for the reply
Using strategy pattern you don't have to reinitialize the obj variable. This may be required in some scenarios where you want to preserve the state of the object. See dofactory.com/net/strategy-design-pattern real world example.
@@net-programmer I got the point that we are passing a different class name in the SetStrategy method of context class.But my question is that we can achieve desire output with the help of re-initialization, without any SetStrategy method of any context class.
If I created my own RestApi, how can I link them together with this code? Do I replace the url with the url of my api and name the methods like my api class?
Yes, you need to change the URL to point to the endpoint that you want to call. In ASP.NET Core Web API it would be {domainName}/{controllerName}/{actionName}
who is fred ?
Thank you bro, short and straight to the point
thanks!
Thank you so much
thanks!
I am lost lol
you're not alone 😔
@@honeyjuice219 if you learn C# i look for a team mate :) if you will :) we can share idea and perhaps learn faster ;)
are you free to help with my project now?
Thank you for the succinct video, it really helps!
I'm glad you liked it!
sealed / internal is a scourge and cancer for open source, but it will be revealed too late, when all the damage will be already done.
Thank you
Polak detected
if i use auto automapper do i need FluentValidation
These packages do different things, so it depends on your given scenario. FluentValidation is used to validate user input (check if it meets the conditions, for example if the email has proper format). AutoMapper is used to map objects from one class to another (for example from string to custom Email class that you've created).
@@net-programmer great thank you very much
When the if condition becomes false, then the task is skipped, but the task should not be skipped until the condition becomes true.
Muito Bom.
now Clean Architecture looks simple! Thanks
Może chciałbyś dołączyć do fajnej polskiej społeczności dotnetowców?
Example of SemaphoreSlim vs Semaphore was weak. How can you use Semaphore for system wide operations? Can you make an example using named semaphore object?
Hi, I was asked about these a few days ago during an interview!
happens quite often :)
Good explanation but please zoom in a little.
Still have no idea why either of these are used.
*he just copied the content from another video that was made 10 years ago. the main purpose when posting a video is explaining why we even need to use either and what situation*
obviously to simplify the codes into shorter and clean one
😭😭😭😭😭😭😭😭😭🤝🤝🤝🤝
Excellent!!! What a clarity, simple and elegant narration!! Keep up the good work!!! Much appreciate it!!
Thanks!
To small I can't see lol
Your explanation is shit!
in the last part, the file appender should be created automatically? or i have to create it so it saves itself there? ty I am just stuck there
I don't remember to be honest :) But I think it wouldn't be created automatically, please create this file manually. The content should be created automatically while running the app.
@@net-programmer ty it was created automatically but i couldn't find the file. It was deep in the bin carpet if i remember correctly.
@@andrecarcausto2740 Cool!
Thanks for making it and keeping it so simple, just to know the EF Core entities are going to part of Core application? Also which layer will contain the external API's or libraries (from Nuget). Also security is going to be part of Infrastructure layer ?
1. ef core entities will be stored in the core project, 2. the UI layer contains the API controllers, it might be renamed if there is no actual UI, just pure API. 3. Each layer may contain it's own nuget packages. 4. Ideally security would be implemented in the infrastructure layer, but in some cases it might need to be a part of the UI.
Thank you bro! Finally a simply fine code that works.
thanks
thank you 👍👍
how can i get the source code ?
I don't have the exact code anymore, but you can see similar examples at the docs: docs.specflow.org/projects/getting-started/en/latest/GettingStarted/Step1.html.
well explained
Do you like the idea of building a generic repository that implements the actual DB calls that is used by all the services?
Sure, that's actually used very often in real-world projects.
I think the DI on minute 7:55 is perfectly fine, since the UI layer may use anything from the Infrastructure layer. In the onion architecture these are on the same layer, which means you don't break the direction of dependency ruling.
Interesting point! You can find this fragment in the Microsoft docs I've mentioned: "Both the UI and the infrastructure layers depend on the application core, but not on one another (necessarily)." It seems to be okay, as you've mentioned.
C# bilgeligini pratik anlamda mukemmele getirmek ixin butun enerjileri kabul ediyorum
Bardzo fajnie tłumaczysz, szkoda że odcinek o indekserach tak krótki, zajawka raczej niż wykład. Ale co do zasady super, co do objętości, apetyt jest wiekszy niż podana porcja ;)
Dzięki, w przyszłości będzie więcej
Hi! I'm from Russia. can you upload the source code? it is very inconvenient to rewrite from the video
Currently I don't have this code uploaded anywhere, but you can find similar examples of configuration (I suppose this is the most problematic part) in the official documentation at logging.apache.org/log4net/release/manual/configuration.html
Nice and straight forward explanation. Thanks
thanks a lot:)
you're welcome!
But can you also debug c# on linux? I can run the application, but degugging it it gives me errors...
Sure, you can. Which IDE are you using? What kind of error are you getting?
@@net-programmer I finally managed to do it I was having multiple csproj files and created for the wrong one
liked!
cool!
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { public class Program { static void Main(string[] args) { var tuple = (element: 5, item: 6); Console.WriteLine(tuple); (int el, int it) tuples = (7, 8); Console.WriteLine(tuples); } } }
Nice video. Always get straight to the point with clean code and concise explanations. Thanks.
Best explanation for this topic in youtube. I've seen a lot of video before this and they provided no value.
Thanks