Пример #1
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
            {
            }
        }
Пример #2
0
 public FaultReportAccess(CachingCloudClient cloud, SQLiteConnection db)
 {
     this.cloud = cloud;
     this.db    = db;
 }