Beispiel #1
0
        /// <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);
        }
Beispiel #2
0
 /// <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;
 }
Beispiel #3
0
 /// <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;
 }