コード例 #1
0
 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);
 }
コード例 #2
0
 public TActor Lookup(ActorId id)
 {
     return(ServiceHostActorProxy.Create <TActor>(id, _telemetryClient, _serviceContext));
 }