Esempio n. 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);
 }
Esempio n. 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));
        }
Esempio n. 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="telimenaProperties"></param>
 /// <param name="userTrackingController"></param>
 internal TelemetryModule(TelimenaProperties telimenaProperties, UserTrackingController userTrackingController)
 {
     this.telimenaProperties     = telimenaProperties;
     this.userTrackingController = userTrackingController;
 }
Esempio n. 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());
 }
Esempio n. 5
0
 /// <summary>
 ///     Asynchronous Telimena methods
 /// </summary>
 public TelemetryModule(TelimenaProperties telimenaProperties)
 {
     this.telimenaProperties = telimenaProperties;
 }