Beispiel #1
0
        public static void AddReminderRoute(this IRouteBuilder routeBuilder)
        {
            routeBuilder.MapPut("actors/{actorTypeName}/{actorId}/method/remind/{reminderName}", async context =>
            {
                var routeValues   = context.Request.RouteValues;
                var actorTypeName = (string)routeValues["actorTypeName"];
                var actorId       = (string)routeValues["actorId"];
                var reminderName  = (string)routeValues["reminderName"];

                // read dueTime, period and data from Request Body.
                await ActorRuntime.FireReminderAsync(actorTypeName, actorId, reminderName, context.Request.Body);
            });
        }