Esempio n. 1
0
        public static void Init()
        {
            var analyticsKey = Insights.DebugModeKey;

            Insights.Initialize(analyticsKey, false);
            InsightsHelper.ResetUser();
        }
Esempio n. 2
0
        private static void CreateCloudClient()
        {
            try
            {
                string url      = DeviceSettings.URL;
                string systemid = DeviceSettings.SystemID;
                string username = DeviceSettings.Username;
                string password = DeviceSettings.Password;

                string cloudUrl = "";
                try
                {
                    cloudUrl = CommonDictionary.CloudUrls[url];
                }
                catch (KeyNotFoundException)
                {
                    cloudUrl = url;
                }
                var connectionInfo = new ConnectionInfo(cloudUrl, systemid, username, password);

                cloud = new CachingCloudClient
                {
                    ConnectionInfo = connectionInfo,
                    SessionManager = new Addovation.Cloud.Apps.AddoResources.Client.Portable.SessionManager()
                };

                InsightsHelper.Init();
            }
            catch
            {
            }
        }