Example #1
0
 internal DaprClientGrpc(
     GrpcChannel channel,
     Autogenerated.Dapr.DaprClient inner,
     HttpClient httpClient,
     Uri httpEndpoint,
     JsonSerializerOptions jsonSerializerOptions,
     KeyValuePair <string, string>?apiTokenHeader)
 {
     this.channel               = channel;
     this.client                = inner;
     this.httpClient            = httpClient;
     this.httpEndpoint          = httpEndpoint;
     this.jsonSerializerOptions = jsonSerializerOptions;
     this.apiTokenHeader        = apiTokenHeader;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DaprClientGrpc"/> class.
 /// </summary>
 /// <param name="channel">gRPC channel to create gRPC clients.</param>
 /// <param name="jsonSerializerOptions">Json serialization options.</param>
 internal DaprClientGrpc(GrpcChannel channel, JsonSerializerOptions jsonSerializerOptions = null)
 {
     this.jsonSerializerOptions = jsonSerializerOptions;
     this.client = new Autogenerated.Dapr.DaprClient(channel);
 }
 internal DaprClientGrpc(Autogenerated.Dapr.DaprClient inner, JsonSerializerOptions jsonSerializerOptions)
 {
     this.client = inner;
     this.jsonSerializerOptions = jsonSerializerOptions;
 }