Aggregator (Stateful Entities) Pattern | Durable Entity | Azure Functions | Implementation | C#

Поделиться
HTML-код
  • Опубликовано: 24 дек 2024

Комментарии • 4

  • @KapilBhavsar-c6o
    @KapilBhavsar-c6o Год назад +1

    How can I use return value of a method ... let's say Add method returns current value

    • @TechWebDots
      @TechWebDots  Год назад +1

      Hi Kapil Bhavsar,
      You can get the value in multiple ways, on the basis of the example that is being used in the session, I can say
      1. You can use the CurrentValue property.
      2. You can get the value from Get() method which is returning integer value.
      You can use the stateResponse variable to check the value returned by the Entity like from EntityState property.
      you cannot return value from Add() method because that is of void return type but you can modify according to your need.
      Hope you like our video 💙.
      Don't forget to subscribe (if not yet done 🙂) & encourage me create more such videos.
      If you like these videos, please click on the THUMBS UP👍 button and share with others where this might be helpful.
      Happy Learning, 💙
      Good Luck TechWebDots!

  • @deb62615
    @deb62615 Год назад

    So the real purpose is: saving state through multiple function runs, as if a db is used?

    • @TechWebDots
      @TechWebDots  Год назад

      You can use DB interaction as well from functions. I would suggest, please checkout the videos of internal functioning and the use cases video available in functions play list. I believe your doubts will be clear after that.
      ruclips.net/p/PLBEm2Vv2nD-OqE6at0_Ew1wW7NpgBdWo1