C# Visual Studio Tutorial - Sending Messages Service Fabric Api Wrapper

Channel:
Subscribers:
3,480
Published on ● Video Link: https://www.youtube.com/watch?v=O98ZUMa1bO8



Category:
Tutorial
Duration: 54:02
73 views
0


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.







Tags:
C#
csharp
programming
coding
Visual Studio
.net
library
sql
entity framework
service fabric
application
development
developer
how to
tutorial
notification
email
sms
email to sms
code
program
core
app
autofac
dependency injection
data
model
server management
useful
debugging
testing
troubleshooting
c-sharp
c# tutorial Sending Messages
send sms c#
c# messaging
send message
mms
C# Tutorial
Advance
Separation of Concerns
D.I.
database
Service
Architecture
Patterns