C# Visual Studio Tutorial - Sending Messages Service Fabric Api Wrapper
This video begins with the creation of a Stateless Service Fabric web api. Once created, it details how to uses the service manifest, application manifest, and environmental variables to configure how the application runs.
Before actually starting programming you should clean up the default template files that are sent in, then make your own api controllers. To speed along progression of the video i copied the code in we implemented in the advanced sms/mms parts 1 and 2 videos.
The video goes into how to add Autofac to your kestrel host and implement the start up for you api. Due to the change in scope of using the public api controller some of the scoping of the internal classes needed to be fixed.
There was then some issues with the swagger file location that needed addressed. When I got the swagger operational i then discovered an issue where service fabric could not access the database. The issue was caused by service fabric running as Network Services and not having access to even call out to the db.
Once Service Fabric had been granted the correct access I covered a final debugging session before showing how to call environmental variables in code.
00:00 Intro
00:40 Creating a Service Fabric Project
02:30 Dynamic Porting
02:58 Overriding the Service Manifest
03:38 Environmental Variables
07:00 Removing Example Code
07:24 Creating Notification Api Controller
11:59 Moving Existing code into project
13:25 Fixing Name Spaces Using Find Replace
14:19 Post Notification Method Setup
18:23 Adding Project References
19:17 Using Autofac with Kestrel
20:06 Implementing Startup
22:13 Adding Swagger to project
27:06 Generate Documentation File
28:18 Setting up Autofac Configure Container Method
31:24 Transferring Code Built in Earlier Projects
32:56 Implement Autofac Container
33:30 Injecting Services Into Controller
34:38 Fixing Scoping Issues
37:04 Referencing Entity Framework Core
38:15 Implementing Post Method
39:07 Running As Administrator
40:00 Using Service Fabric Manager
41:24 Using Reverse Proxy
42:52 Fixing Swagger File Location Issue
43:52 Discussing Swagger
44:56 Initial Testing and Debugging
47:22 Fixing Service Fabric Unable to Access Sql
51:07 Stack Overflow that Helped Fix Issue
51:53 Using Environmental Variable
53:52 Extro
Links
SQL Server Express
https://www.microsoft.com/en-us/sql-server/sql-server-downloads
SQL Server Management
https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?redirectedfrom=MSDN&view=sql-server-ver15
Visual Studio Community
https://visualstudio.microsoft.com/downloads/
Service Fabric Sdk
https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-get-started
Google Key
https://myaccount.google.com/security
Knowledge Resource
https://support.teamunify.com/en/articles/227-email-to-sms-gateway-list
https://autofaccn.readthedocs.io/en/latest/integration/netcore.html
This video is like C# Ui Academy, VetrivelD, and Programming with Mosh.
Other Videos By CouchCmd
2021-06-29 | Gamepass Modding: Fixing No Applicable License Found |
2021-06-25 | Five Amazing Starbound Mods in Less Than 10 Minutes |
2021-06-23 | How To Mod Starbound from PC GamePass in Five Minutes or Less |
2021-06-21 | 7 Days to Die Glitch/Trick: Spear Gun |
2021-06-18 | Five Amazing Valheim Mods in Less than 10 Minutes |
2021-06-09 | How to Mod Valheim in Less Than Five Minutes |
2021-06-04 | Five Amazing Stardew Valley Mods in Less than 10 Minutes |
2021-06-02 | How to Mod Stardew Valley in Less Than Five Minutes |
2021-05-28 | How to Mod 7 Days to Die in Less Than Five Minutes |
2021-05-26 | How to Mod Among Us in Less Than Five Minutes |
2020-12-19 | C# Visual Studio Tutorial - Sending Messages Service Fabric Api Wrapper |
2020-12-12 | C# Tutorial - Advanced Messaging Library with Entity Framework, Response/Request, and D.I. Part-2 |
2020-12-06 | C# Tutorial - Advanced Messaging Library with Entity Framework, Response/Request, and D.I. Part-1 |
2020-11-28 | C# Visual Studio Tutorial - Sending Messages for Beginners |