Method | Description | |
---|---|---|
MergedWith ( this original, |
This method 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, where null values do not override non-null values. Any header mutations are combined, however: the mutation from the original is performed, then the mutation in the overlay.
|
|
WithCallCredentials ( this settings, Grpc.Core.CallCredentials credentials ) : |
Returns a new CallSettings with the specified call credentials, merged with the (optional) original settings specified by settings.
|
|
WithCallTiming ( this settings, |
Returns a new CallSettings with the specified call timing, merged with the (optional) original settings specified by settings.
|
|
WithCancellationToken ( this settings, |
Returns a new CallSettings with the specified cancellation token, merged with the (optional) original settings specified by settings.
|
|
WithHeader ( this settings, string name, string value ) : |
Returns a new CallSettings with the specified header, merged with the (optional) original settings specified by settings.
|
Method | Description | |
---|---|---|
ToCallOptions ( this baseSettings, |
Transfers settings contained in this into a CallOptions.
|
public static MergedWith ( this original, |
||
original | this | Original settings. May be null. |
overlaid | Settings to overlay. May be null. | |
return |
public static WithCallCredentials ( this settings, Grpc.Core.CallCredentials credentials ) : |
||
settings | this | Original settings. May be null, in which case the returned settings /// will only contain call credentials. |
credentials | Grpc.Core.CallCredentials | Call credentials for the new call settings.
/// This may be null, in which case any call credentials in |
return |
public static WithCallTiming ( this settings, |
||
settings | this | Original settings. May be null, in which case the returned settings /// will only contain call timing. |
timing | Call timing for the new call settings.
/// This may be null, in which case any call timing in |
|
return |
public static WithCancellationToken ( this settings, |
||
settings | this | Original settings. May be null, in which case the returned settings /// will only contain the cancellation token. |
cancellationToken | Cancellation token for the new call settings. | |
return |
public static WithHeader ( this settings, string name, string value ) : |
||
settings | this | Original settings. May be null, in which case the returned settings /// will only contain the header. |
name | string | Header name. Must not be null. |
value | string | Header value. Must not be null. |
return |