示例#1
0
 /// <summary>
 /// Initialize whencACtorProxy is created for Remoting.
 /// </summary>
 internal void Initialize(
     ActorRemotingClient client,
     ActorId actorId,
     string actorType)
 {
     this.actorRemotingClient     = client;
     this.ActorId                 = actorId;
     this.ActorType               = actorType;
     this.ActorMessageBodyFactory = client.GetRemotingMessageBodyFactory();
 }
示例#2
0
 /// <summary>
 /// Initialize when ActorProxy is created for Remoting.
 /// </summary>
 internal void Initialize(
     ActorRemotingClient client,
     ActorId actorId,
     string actorType,
     ActorProxyOptions options)
 {
     this.actorRemotingClient     = client;
     this.ActorId                 = actorId;
     this.ActorType               = actorType;
     this.ActorMessageBodyFactory = client.GetRemotingMessageBodyFactory();
     this.JsonSerializerOptions   = options?.JsonSerializerOptions ?? this.JsonSerializerOptions;
 }
示例#3
0
 /// <summary>
 /// Initialize when ActorProxy is created for Remoting.
 /// </summary>
 internal void Initialize(
     ActorRemotingClient client,
     ActorId actorId,
     string actorType,
     ActorProxyOptions options)
 {
     this.actorRemotingClient     = client;
     this.ActorId                 = actorId;
     this.ActorType               = actorType;
     this.ActorMessageBodyFactory = client.GetRemotingMessageBodyFactory();
     this.JsonSerializerOptions   = options?.JsonSerializerOptions ?? new JsonSerializerOptions(JsonSerializerDefaults.Web);
     this.DaprApiToken            = options?.DaprApiToken;
 }