Esempio n. 1
0
 internal ConfigurationBuilder(Configuration copyFrom)
 {
     _dataSourceFactory           = copyFrom.DataSourceFactory;
     _dataStoreFactory            = copyFrom.DataStoreFactory;
     _diagnosticOptOut            = copyFrom.DiagnosticOptOut;
     _eventProcessorFactory       = copyFrom.EventProcessorFactory;
     _httpConfigurationFactory    = copyFrom.HttpConfigurationFactory;
     _loggingConfigurationFactory = copyFrom.LoggingConfigurationFactory;
     _offline       = copyFrom.Offline;
     _sdkKey        = copyFrom.SdkKey;
     _startWaitTime = copyFrom.StartWaitTime;
 }
Esempio n. 2
0
 internal ConfigurationBuilder(Configuration copyFrom)
 {
     _bigSegmentsConfigurationFactory = copyFrom.BigSegmentsConfigurationFactory;
     _dataSourceFactory           = copyFrom.DataSourceFactory;
     _dataStoreFactory            = copyFrom.DataStoreFactory;
     _diagnosticOptOut            = copyFrom.DiagnosticOptOut;
     _eventProcessorFactory       = copyFrom.EventProcessorFactory;
     _httpConfigurationFactory    = copyFrom.HttpConfigurationFactory;
     _loggingConfigurationFactory = copyFrom.LoggingConfigurationFactory;
     _offline = copyFrom.Offline;
     _sdkKey  = copyFrom.SdkKey;
     _serviceEndpointsBuilder = new ServiceEndpointsBuilder(copyFrom.ServiceEndpoints);
     _startWaitTime           = copyFrom.StartWaitTime;
 }
Esempio n. 3
0
 /// <summary>
 /// Sets the SDK's networking configuration, using a factory object. This object is normally a
 /// configuration builder obtained from <see cref="Components.HttpConfiguration()"/>, which has
 /// methods for setting individual HTTP-related properties.
 /// </summary>
 /// <param name="httpConfigurationFactory">a builder/factory object for HTTP configuration</param>
 /// <returns>the same builder</returns>
 public ConfigurationBuilder Http(IHttpConfigurationFactory httpConfigurationFactory)
 {
     _httpConfigurationFactory = httpConfigurationFactory;
     return(this);
 }