Beispiel #1
0
        public Action <IApplicationBuilder> Configure(Action <IApplicationBuilder> next)
        {
            // Adds routes for Actors interaction.
            return(app =>
            {
                var actorRouteBuilder = new RouteBuilder(app);
                actorRouteBuilder.AddDaprConfigRoute();
                actorRouteBuilder.AddDaprHealthzRoute();
                actorRouteBuilder.AddActorActivationRoute();
                actorRouteBuilder.AddActorDeactivationRoute();
                actorRouteBuilder.AddActorMethodRoute();
                actorRouteBuilder.AddReminderRoute();
                actorRouteBuilder.AddTimerRoute();

                app.UseRouter(actorRouteBuilder.Build());
                next(app);
            });
        }