Skip to content

Sample .NET Dapr microservice application

Notifications You must be signed in to change notification settings

crookm/hello-dapr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello Dapr

Running the services

In the directory of each service, run the following command:

dapr run --app-id <service id> --app-port <hosted port> -- dotnet run

Where <service id> is one of math-service, greeter-service, or api-service. These are arbitrary tags, but must be shared across all applications. In this set of services, you'll only see it used in src/HelloDapr.Api/Program.cs where I configure a gRPC inteceptor to add the id to every request as metadata. This is so the Dapr gRPC proxy knows where to direct requests.

The <hosted port> is the port where the application will run, which is where Dapr will direct requests.

About

Sample .NET Dapr microservice application

Resources

Stars

Watchers

Forks

Packages