Exemple #1
0
 public UserTrackingController(TelimenaProperties properties, Locator locator, ITelimenaSerializer serializer, UserInfo initialUserInfo = null)
 {
     this.properties       = properties;
     this.locator          = locator;
     this.serializer       = serializer;
     this.initialUserInfo  = initialUserInfo;
     this.settingsProvider = new RemoteSettingsProvider(this.properties.TelemetryApiBaseUrl);
 }
Exemple #2
0
        internal static ITelimena GetNullObjectTeli(ITelimenaStartupInfo startupInfo)
        {
//something went wrong when building telimena
            //return something that will not break client's code
            ITelimenaProperties props;

            try
            {
                //try at least building properties if possible
                props = new TelimenaProperties(startupInfo);
            }
            catch
            {
                //ok, even that failed, return fail safe thing
                props = new NullObjectTelimenaProperties();
            }

            return(new NullObjectTelimena(props));
        }
Exemple #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="telimenaProperties"></param>
 /// <param name="userTrackingController"></param>
 internal TelemetryModule(TelimenaProperties telimenaProperties, UserTrackingController userTrackingController)
 {
     this.telimenaProperties     = telimenaProperties;
     this.userTrackingController = userTrackingController;
 }
Exemple #4
0
 /// <summary>
 ///     Asynchronous Telimena methods
 /// </summary>
 public TelemetryModule(TelimenaProperties telimenaProperties)
 {
     this.telimenaProperties     = telimenaProperties;
     this.userTrackingController = new UserTrackingController(this.telimenaProperties, new Locator(this.telimenaProperties.StaticProgramInfo), new TelimenaSerializer());
 }
Exemple #5
0
 /// <summary>
 ///     Asynchronous Telimena methods
 /// </summary>
 public TelemetryModule(TelimenaProperties telimenaProperties)
 {
     this.telimenaProperties = telimenaProperties;
 }