/// <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(); }
/// <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; }
/// <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; }