Thanks for updating the video, James. Too many times content creators make a video and never correct it if happens to have things that are wrong in it.
Thanks Steve! yeah, caught it early and I was like let's do this! hopefully youtube makes it easier in the future instead of uploading a full new video
Thank you for making such great content and presenting it in an entertaining way. I’ve learnt loads from the MAUI workshop and your other videos. I’d love to see an in depth video on authentication especially using Google, Facebook Apple etc for the login.
Hi James, I love your videos. They are easy to follow and have helped me greatly to get started with Maui. I am trying to build a MAUI app that eventually will target Windows but will firstly target Mac. Can you do a video or point me to some articles on setting up background tasks for Mac and Windows under MAUI? Any help here would be greatly appreciated. Keep up the great work Kerry
Hey James, could you make a video on creating a new custom view control using Handlers, PropertyMappers, and CommandMappers? I've yet to come across an example that uses CommandMappers and there's very little documentation on them. Thanks for the videos.
And what is the right way to use DI with EntityFramework services in Blazor Server? Now I use Scoped, but there are a lot of posts and videos, where people describe that you should use DbContextFactory instead of DBContext. Also people are saying that using wrong type of service and DBContext instead of DbContextFactory can lead to buggy behavior of the app. Your Input about it will be really useful. I am talking specifically about Blazor SS.
ah, the lonely oft-neglected service app ;) my current go-to service/long-running-process pattern is basically - a unified service/console lifetime - a background/hosted task - that task periodically performing work, call it once per hour. Where the 'work' is to create a new scope, and instantiate on that scope a 'session' of some form which will do the actual work. That 'session' is registered as a scoped service. This allows me to more reliable tear everything down after all the work is done for that iteration - releasing held resources while the app will basically be sitting idle until its next time to do work. Even when there is no great benefit from a resource perspective, its helpful to not have state/data that carries over from the 1AM run to the 2AM run. but UI is cool, and what most people work with - good explanations all around.
My VS Maui installation just blew up today when I updated it to 17.3.0 Pre4. It was looking for the new Android 33 release. I did a bunch of things and finally uninstalled -- but can't get it installed again. How frustrating...
I have a problem with login / logout feature on my Net MAUI app. If the user login with certain user, and logout and then login with another user, all my DI services have the previous user, no refresh them with the new data. I'm using Transcient as lifetime.
One question, 2:18 it shows that Count property in CounterService doesn`t implement INPC interface, so it can still notify blazor page to update it`s value?
Interesting: I'm Assuming Scope with Windows could mean this. You have tabbed views that you want to retain the information, at the same time you don't want it Global (singleton) and you don't want to loose the information (transient) if the page looses focus, for instance if the user is lost and tabbing to find the correct page again. Have I assumed correctly?
From what I get it will just resolve windows within a newly created scope so you will get a new service instance on every window and all the child components but different DI providers could interpret the scope in a different way. For example in AutoFAC you could have something owned on different levels depending on the setup. A scope just means where the first instance of created scope you could create it manually on a component basses.
The most practical & easy to understand example I have ever seen on this topic till date.
Thanks for updating the video, James. Too many times content creators make a video and never correct it if happens to have things that are wrong in it.
Thanks Steve! yeah, caught it early and I was like let's do this! hopefully youtube makes it easier in the future instead of uploading a full new video
I watched this when both James are from the past. Glad you made the changes. Gave me a wholesome understanding.
Thank you for making such great content and presenting it in an entertaining way. I’ve learnt loads from the MAUI workshop and your other videos. I’d love to see an in depth video on authentication especially using Google, Facebook Apple etc for the login.
Thanks
Thank you. Love the content and love seeing you learn in "real" time.
Great vid as always!
Great video, refreshing to watch a video where someone explains things in simple terms :D
The best explanation I have ever seen.
you explain so well
James. Please do a video on how to test (automated) .net MAUI applications. Thanks.
Very very very good explanation thank you so much.
Now I get it. Thank you James!
excellent and precise example
Hi James,
I love your videos. They are easy to follow and have helped me greatly to get started with Maui. I am trying to build a MAUI app that eventually will target Windows but will firstly target Mac. Can you do a video or point me to some articles on setting up background tasks for Mac and Windows under MAUI? Any help here would be greatly appreciated.
Keep up the great work
Kerry
Simple and clear. Thanks,
Hey James, could you make a video on creating a new custom view control using Handlers, PropertyMappers, and CommandMappers? I've yet to come across an example that uses CommandMappers and there's very little documentation on them.
Thanks for the videos.
Hey James, Can you make a video or tutorial about .Net Nanoframwork , thank you
And what is the right way to use DI with EntityFramework services in Blazor Server?
Now I use Scoped, but there are a lot of posts and videos, where people describe that you should use DbContextFactory instead of DBContext. Also people are saying that using wrong type of service and DBContext instead of DbContextFactory can lead to buggy behavior of the app. Your Input about it will be really useful. I am talking specifically about Blazor SS.
Thank you
Also note that scoped dependencies are just reduced to singletons in Blazor WASM
Can you make video how to applicate MVI pattern in c# application
ah, the lonely oft-neglected service app ;)
my current go-to service/long-running-process pattern is basically
- a unified service/console lifetime
- a background/hosted task
- that task periodically performing work, call it once per hour. Where the 'work' is to create a new scope, and instantiate on that scope a 'session' of some form which will do the actual work. That 'session' is registered as a scoped service.
This allows me to more reliable tear everything down after all the work is done for that iteration - releasing held resources while the app will basically be sitting idle until its next time to do work.
Even when there is no great benefit from a resource perspective, its helpful to not have state/data that carries over from the 1AM run to the 2AM run.
but UI is cool, and what most people work with - good explanations all around.
My VS Maui installation just blew up today when I updated it to 17.3.0 Pre4. It was looking for the new Android 33 release. I did a bunch of things and finally uninstalled -- but can't get it installed again. How frustrating...
I have a problem with login / logout feature on my Net MAUI app. If the user login with certain user, and logout and then login with another user, all my DI services have the previous user, no refresh them with the new data. I'm using Transcient as lifetime.
Si quiero hacer algo tipo MessageBox. (Obvio que intento no usar JS por temas practicos). Seria indistinto que fuese Transient o Scoped?
One question, 2:18 it shows that Count property in CounterService doesn`t implement INPC interface, so it can still notify blazor page to update it`s value?
Blazor doesn’t need any notification change events it all happens automatically
Commenty McComment: Good post!
Nice edit! If you ever wanna chat about Prism let me know
Interesting: I'm Assuming Scope with Windows could mean this.
You have tabbed views that you want to retain the information, at the same time you don't want it Global (singleton) and you don't want to loose the information (transient) if the page looses focus, for instance if the user is lost and tabbing to find the correct page again.
Have I assumed correctly?
From what I get it will just resolve windows within a newly created scope so you will get a new service instance on every window and all the child components but different DI providers could interpret the scope in a different way. For example in AutoFAC you could have something owned on different levels depending on the setup. A scope just means where the first instance of created scope you could create it manually on a component basses.
James from future... That`s funny! 😀
Looks better without the lights as per my eyes 😂
Hey James Please send a greeting to my mom Marta, yes, like the Batman's mom