Skip to main content

Using Dapr in ASP.NET Core

  • Chapter
  • First Online:
Introducing Distributed Application Runtime (Dapr)
  • 1257 Accesses

Abstract

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2021 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Gatev, R. (2021). Using Dapr in ASP.NET Core. In: Introducing Distributed Application Runtime (Dapr). Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-6998-5_14

Download citation

Publish with us

Policies and ethics