/// <inheritdoc/> public ActorProxy Create(ActorId actorId, string actorType) { var actorProxy = new ActorProxy(); var nonRemotingClient = new ActorNonRemotingClient(this.daprInteractor); actorProxy.Initialize(nonRemotingClient, actorId, actorType); return(actorProxy); }
/// <summary> /// Initialize whenc ActorProxy is created for non-Remoting calls. /// </summary> internal void Initialize( ActorNonRemotingClient client, ActorId actorId, string actorType) { this.actorNonRemotingClient = client; this.ActorId = actorId; this.ActorType = actorType; }
/// <summary> /// Initialize when ActorProxy is created for non-Remoting calls. /// </summary> internal void Initialize( ActorNonRemotingClient client, ActorId actorId, string actorType, ActorProxyOptions options) { this.actorNonRemotingClient = client; this.ActorId = actorId; this.ActorType = actorType; this.JsonSerializerOptions = options?.JsonSerializerOptions ?? this.JsonSerializerOptions; }