Using Dapr in ASP.NET Core

Radoslav Gatev · Apress eBooks · 2021

In this chapter, you will learn about the integration between Dapr and ASP.NET Core. If you made it so far in the book, you have already seen a lot of examples implemented in ASP.NET. Dapr does not need really anything special to be used with any web framework. However, when it comes to ASP.NET Core, Dapr has some syntactic sugar that makes it even easier. There is support for using the State Management and the Publish and Subscribe building blocks natively inside a controller. There is also a way to expose a secret store as an ASP.NET Core configuration. Furthermore, implementing a gRPC service doesn’t mean that you have to import the Protobuf files of Dapr in order to call its gRPC API. It comes pre-packaged inside the support for ASP.NET Core.

Read the paper · More papers on PaperTik