C# Класс Segment.Config

Config required to initialize the client
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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

Описание методов

Config() публичный Метод

public Config ( ) : System
Результат System

SetAsync() публичный Метод

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
Результат Config

SetHost() публичный Метод

Sets the endpoint to send the requests to. The default is
public SetHost ( string host ) : Config
host string The url to use
Результат Config

SetMaxQueueSize() публичный Метод

Sets the maximum amount of items that can be in the queue before no more are accepted.
public SetMaxQueueSize ( int maxQueueSize ) : Config
maxQueueSize int
Результат Config

SetTimeout() публичный Метод

Sets the maximum amount of timeout on the HTTP request flushes to the server.
public SetTimeout ( System.TimeSpan timeout ) : Config
timeout System.TimeSpan
Результат Config

SetWebProxy() публичный Метод

Sets the endpoint to send the requests to. The default is
public SetWebProxy ( IWebProxy webProxy ) : Config
webProxy IWebProxy The web proxy to use
Результат Config