That was crystal clear contents. I always liked your informative explanations, And I wish for more tutorial content like these. Thank you for your efforts🙏🙏🙏
I dont understand the point of this ide if you have IntelliJ ultimate + rider you can work on any language actually and with a far better integration, they should put their efforts to improve the IA instant
Would this approach work if I have a limited number of connections that I can make with an sftp client? The way I see it, this can also help control concurrency. I don't know if there is a better approach.
Really good question. It prevents me from using the strategy pattern by having to have things like keyed service or passing a factory, more over configure that at runtime. If the alternative is to assemble the class yourself you can pass whatever parameter you want. So assuming that I need to pass the strategy in constructor, if you are suggesting injecting a service and then giving it a strategy via a method means you change its state after instantiation, this muddles control flow therefore introduces complexity.
Hey Anton, nice content and the whole Auth playlist is just incredible. It's been a while so I don't expect your answer, but I'm still wondering about a few things 1. When SPA and API are on different sub-domains SameSite=Lax and enabling CORS should work well as in your example. 2. However when my SPA and API are on completely different domains I guess I need SameSite=None and CORS, otherwise it won't work, right? In that case, I have to enable anti-forgery token generation for my API and attach it to every Response + verification of it on the API side. Without SameSite=None it won't be possible to share the cookie across completely different domains, correct? And when SameSite=None we are vulnerable to CSRF attack so anti-forgery is a must. Thanks
If your auth cookie is samesite none, if you get xss attacked the auth session will get stolen since the cookie can be sent to a different domain. Id suggest use the new token auth, rather than meddle with cookies cross domain; though again that token will be pretty vaulnerable the proper way is BFF that can deal a cookie for your spa on the same domain.
you really need to talk more clearly and a little bit slower, it's really hard to understand what you are saying if the viewer main language is not Enlgish. that's why the most popular programming instructors are indians since they are really easier to understand
And this is how you may simplify your code with no Pipe class or inheritance: public sealed class PipelineBuilder<T> { private readonly Action<T> _coreAction; private readonly IList<Action<T, Action<T>>> _pipeline = new List<Action<T, Action<T>>>(); public PipelineBuilder(Action<T> coreAction) { _coreAction = coreAction; } public PipelineBuilder<T> Add(Action<T, Action<T>> pipe) { _pipeline.Add(pipe); return this; } public Action<T> Build() => CreatePipeline(); private Action<T> CreatePipeline(int index = 0) { var nextAction = index < _pipeline.Count - 1 ? CreatePipeline(index + 1) : _coreAction; return obj => _pipeline[index](obj, nextAction); } }
GOD, I ADORE YOU, I'VE BEEN LOOKING FOR THIS FOR A WEEK, I DIDN'T SLEEP UNTIL 4:00 IN SEARCH OF THIS BECAUSE I'M BUILDING A MICROSEOVIS ARCHITECTURE SO YOU ALSO CONNECTED REDIS THANK YOU VERY MUCH
I always thought the keyed services were kinda useless since we could do those things easily with just a little bit of code, glad someone finally made a video about it.
Thank you! This was so helpful: I inherited a vue.js app with a .NET Minimal API at work and this is the only video that helped me understand how it works. I do have one question though - in my application, when I run the vue app and then run the API, I can hit breakpoints in the API but not in the vue.js code. Would you have any idea on why that is? Regardless, a very helpful video! :)
Thanks for this wonderful article. I have some queries. In this you loaded the assembly as hardcoded. How to achieve this for multiple plugins. For example, if I have employee, department, staff plugins and these need to load at runtime. How to achieve this. Also, is it possible to load the Web API Controllers in similar ways. Thanks.
First , thanks for the video . i tried to fetch data using the two ways mentioned in the video but each way give a different number of lines . am i doing it right ? what should i do ?
One use case I have for them is to expose multiple interfaces on the same instance without having the actual instance accessible from the DI. So basically what I do for some parts: class AorB : IA, IB { ... } var temp = new object(); services.AddKeyedSingleton<AorB>(temp) services.AddTransient<IA>(p => p.GetKeyedService(temp)) services.AddTransient<IB>(p => p.GetKeyedService(temp)) In my logic I actually replicated the options from AutoFac using service registrations, but I guess you get the point. In my case I only want to have IA or IB retrievable but not AorB but this is the class implementing both interfaces so to have a single instance I need to have it accessible from the DI. Same goes for decorating services and other things.
I think it would have been better to go the Babel and Webpack route so that you can have .vue files. This method you're showing is fine for super small "intro to vue" apps, but for an Admin application? Definitely not.
i am bit confused is async spawn state machine(3:03) or Task(3:48) you told its async somewhere you told its Task so if i want to avoid state machine which one i shouldnt use async or task
Who learn the dotnet first, that is brainwashed by microsoft. They try to do by microsoft way. Spring is Man. You need to think like Spring way don’t use Microsoft way to it. You need to clean up from microsoft first. Productivity in Spring way more faster than dotnet. Learn Spring like a man. Almost all patterns are built in.
I watched your video and it is clearly visible you don’t know spring yet. I am Java, dotnet developer and Oracle OCE and Mssql DBA. I know you are MVP but your video is not fare. With dotnet productivity is slow and requires more affords. If you upgrade dotnet version, it doesn’t go smoothly like java and spring.
All data is binary under the hood. You need to know the format to deserialise it, chances are if its grcp you might struggle to figure out whta the schema is