Class ConfigurationBuilder
Inheritance
ConfigurationBuilder
Assembly: LaunchDarkly.EventSource.dll
Syntax
public class ConfigurationBuilder
Methods
BackoffResetThreshold(TimeSpan)
Declaration
public ConfigurationBuilder BackoffResetThreshold(TimeSpan backoffResetThreshold)
Parameters
Type |
Name |
Description |
TimeSpan |
backoffResetThreshold |
|
Returns
Build()
Declaration
public Configuration Build()
Returns
ConnectionTimeout(TimeSpan)
Declaration
[Obsolete("Use ResponseStartTimeout")]
public ConfigurationBuilder ConnectionTimeout(TimeSpan responseStartTimeout)
Parameters
Type |
Name |
Description |
TimeSpan |
responseStartTimeout |
|
Returns
HttpClient(HttpClient)
Declaration
public ConfigurationBuilder HttpClient(HttpClient client)
Parameters
Returns
HttpMessageHandler(HttpMessageHandler)
Declaration
public ConfigurationBuilder HttpMessageHandler(HttpMessageHandler handler)
Parameters
Returns
HttpRequestModifier(Action<HttpRequestMessage>)
Declaration
public ConfigurationBuilder HttpRequestModifier(Action<HttpRequestMessage> httpRequestModifier)
Parameters
Returns
InitialRetryDelay(TimeSpan)
Declaration
public ConfigurationBuilder InitialRetryDelay(TimeSpan initialRetryDelay)
Parameters
Type |
Name |
Description |
TimeSpan |
initialRetryDelay |
|
Returns
LastEventId(string)
Declaration
public ConfigurationBuilder LastEventId(string lastEventId)
Parameters
Type |
Name |
Description |
string |
lastEventId |
|
Returns
LogAdapter(ILogAdapter)
Declaration
public ConfigurationBuilder LogAdapter(ILogAdapter logAdapter)
Parameters
Returns
Logger(Logger)
Declaration
public ConfigurationBuilder Logger(Logger logger)
Parameters
Type |
Name |
Description |
Logger |
logger |
|
Returns
MaxRetryDelay(TimeSpan)
Declaration
public ConfigurationBuilder MaxRetryDelay(TimeSpan maxRetryDelay)
Parameters
Type |
Name |
Description |
TimeSpan |
maxRetryDelay |
|
Returns
Method(HttpMethod)
Declaration
public ConfigurationBuilder Method(HttpMethod method)
Parameters
Returns
PreferDataAsUtf8Bytes(bool)
Declaration
public ConfigurationBuilder PreferDataAsUtf8Bytes(bool preferDataAsUtf8Bytes)
Parameters
Type |
Name |
Description |
bool |
preferDataAsUtf8Bytes |
|
Returns
ReadTimeout(TimeSpan)
Declaration
public ConfigurationBuilder ReadTimeout(TimeSpan readTimeout)
Parameters
Type |
Name |
Description |
TimeSpan |
readTimeout |
|
Returns
RequestBody(string, string)
Declaration
public ConfigurationBuilder RequestBody(string bodyString, string contentType)
Parameters
Returns
RequestBodyFactory(Func<HttpContent>)
Declaration
public ConfigurationBuilder RequestBodyFactory(Func<HttpContent> factory)
Parameters
Returns
Declaration
public ConfigurationBuilder RequestHeader(string name, string value)
Parameters
Returns
Declaration
public ConfigurationBuilder RequestHeaders(IDictionary<string, string> headers)
Parameters
Returns
ResponseStartTimeout(TimeSpan)
Declaration
public ConfigurationBuilder ResponseStartTimeout(TimeSpan responseStartTimeout)
Parameters
Type |
Name |
Description |
TimeSpan |
responseStartTimeout |
|
Returns