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); }
public TActor Lookup(ActorId id) { return(ServiceHostActorProxy.Create <TActor>(id, _telemetryClient, _serviceContext)); }