Esempio n. 1
0
 public static void AddActorActivationRoute(this IRouteBuilder routeBuilder)
 {
     routeBuilder.MapPost("actors/{actorTypeName}/{actorId}", async context =>
     {
         var routeValues   = context.Request.RouteValues;
         var actorTypeName = (string)routeValues["actorTypeName"];
         var actorId       = (string)routeValues["actorId"];
         await ActorRuntime.ActivateAsync(actorTypeName, actorId);
     });
 }