Method | Description | |
---|---|---|
CallSettings ( |
Constructs an instance with the specified settings.
|
|
FromCallCredentials ( Grpc.Core.CallCredentials credentials ) : |
Creates a CallSettings for the specified call credentials, or returns null if credentials is null.
|
|
FromCallTiming ( |
Creates a CallSettings for the specified call timing, or returns null if timing is null.
|
|
FromCancellationToken ( |
Creates a CallSettings for the specified cancellation token.
|
|
FromHeader ( string name, string value ) : |
Creates a CallSettings for the specified header name and value.
|
|
FromHeaderMutation ( Action |
Creates a CallSettings for the specified header mutation, or returns null if headerMutation is null.
|
Method | Description | |
---|---|---|
Merge ( |
Merges the settings in overlaid with those in original, with overlaid taking priority. If both arguments are null, the result is null. If one argument is null, the other argument is returned. Otherwise, a new object is created with a property-wise overlay. Any header mutations are combined, however: the mutation from the original is performed, then the mutation in the overlay.
|
public CallSettings ( |
||
cancellationToken | Cancellation token that can be used for cancelling the call. | |
credentials | Grpc.Core.CallCredentials | Credentials to use for the call. |
timing | ||
headerMutation | Action |
Action to modify the headers to send at the beginning of the call. |
writeOptions | Grpc.Core.WriteOptions | |
propagationToken | Grpc.Core.ContextPropagationToken | |
return | Grpc.Core |
public static FromCallCredentials ( Grpc.Core.CallCredentials credentials ) : |
||
credentials | Grpc.Core.CallCredentials | The call credentials for the new settings. |
return |
public static FromCallTiming ( |
||
timing | The call timing for the new settings. | |
return |
public static FromCancellationToken ( |
||
cancellationToken | The cancellation token for the new settings. | |
return |
public static FromHeader ( string name, string value ) : |
||
name | string | The name of the header to add. Must not be null. |
value | string | The value of the header to add. Must not be null. |
return |
public static FromHeaderMutation ( Action |
||
headerMutation | Action |
Action to modify the headers to send at the beginning of the call. |
return |