C# 클래스 Segment.Config

Config required to initialize the client
파일 보기 프로젝트 열기: articulate/Analytics.NET 1 사용 예제들

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