C# Class Segment.Config

Config required to initialize the client
Datei anzeigen Open project: articulate/Analytics.NET Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Config ( ) : System
SetAsync ( bool async ) : Config

Sets whether the flushing to the server is synchronous or asynchronous. True is the default and will allow your calls to Analytics.Client.Identify(...), Track(...), etc to return immediately and to be queued to be flushed on a different thread. False is convenient for testing but should not be used in production. False will cause the HTTP requests to happen immediately.

SetHost ( string host ) : Config

Sets the endpoint to send the requests to. The default is

SetMaxQueueSize ( int maxQueueSize ) : Config

Sets the maximum amount of items that can be in the queue before no more are accepted.

SetTimeout ( System.TimeSpan timeout ) : Config

Sets the maximum amount of timeout on the HTTP request flushes to the server.

SetWebProxy ( IWebProxy webProxy ) : Config

Sets the endpoint to send the requests to. The default is

Method Details

Config() public method

public Config ( ) : System
return System

SetAsync() public method

Sets whether the flushing to the server is synchronous or asynchronous. True is the default and will allow your calls to Analytics.Client.Identify(...), Track(...), etc to return immediately and to be queued to be flushed on a different thread. False is convenient for testing but should not be used in production. False will cause the HTTP requests to happen immediately.
public SetAsync ( bool async ) : Config
async bool True for async flushing, false for blocking flushing
return Config

SetHost() public method

Sets the endpoint to send the requests to. The default is
public SetHost ( string host ) : Config
host string The url to use
return Config

SetMaxQueueSize() public method

Sets the maximum amount of items that can be in the queue before no more are accepted.
public SetMaxQueueSize ( int maxQueueSize ) : Config
maxQueueSize int
return Config

SetTimeout() public method

Sets the maximum amount of timeout on the HTTP request flushes to the server.
public SetTimeout ( System.TimeSpan timeout ) : Config
timeout System.TimeSpan
return Config

SetWebProxy() public method

Sets the endpoint to send the requests to. The default is
public SetWebProxy ( IWebProxy webProxy ) : Config
webProxy IWebProxy The web proxy to use
return Config