コード例 #1
0
        /// <summary>
        /// Creates a new CosmosClientOptions
        /// </summary>
        public CosmosClientOptions()
        {
            this.UserAgentContainer = new UserAgentContainer();
            EnvironmentInformation environmentInformation = new EnvironmentInformation();

            this.currentEnvironmentInformation = environmentInformation.ToString();
            this.UserAgentContainer.Suffix     = this.currentEnvironmentInformation;
            this.GatewayModeMaxConnectionLimit = ConnectionPolicy.Default.MaxConnectionLimit;
            this.RequestTimeout     = ConnectionPolicy.Default.RequestTimeout;
            this.ConnectionMode     = CosmosClientOptions.DefaultConnectionMode;
            this.ConnectionProtocol = CosmosClientOptions.DefaultProtocol;
            this.ApiType            = CosmosClientOptions.DefaultApiType;
            this.CustomHandlers     = new Collection <RequestHandler>();
        }
コード例 #2
0
        static UserAgentContainer()
        {
            EnvironmentInformation environmentInformation = new EnvironmentInformation();

            UserAgentContainer.baseUserAgent = environmentInformation.ToString();
        }