public static ContainerBuilder AddServiceFabricActor <TActor>(this ContainerBuilder builder)
     where TActor : class, IActor
 {
     builder.Register(
         (c, args) => ServiceHostActorProxy.Create <TActor>(
             args.TypedAs <ActorId>(),
             c.Resolve <TelemetryClient>(),
             c.Resolve <ServiceContext>()));
     return(builder);
 }
Ejemplo n.º 2
0
 public TActor Lookup(ActorId id)
 {
     return(ServiceHostActorProxy.Create <TActor>(id, _telemetryClient, _serviceContext));
 }