C# Class Segment.Config

Config required to initialize the client
Afficher le fichier Open project: articulate/Analytics.NET Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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 méthode

public Config ( ) : System
Résultat System

SetAsync() public méthode

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
Résultat Config

SetHost() public méthode

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

SetMaxQueueSize() public méthode

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

SetTimeout() public méthode

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

SetWebProxy() public méthode

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