Esempio n. 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();
 }
Esempio n. 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;
 }
Esempio n. 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;
 }