public void InitializeClient() { try { if (File.Exists(Common.UserSettingFilePath)) { using (var stream = new MemoryStream()) { CryptographyUtils.DecryptFiletoStream(Common.UserSettingFilePath, stream, Common.GetMachineGuid()); stream.Position = 0; userSetting = UserSetting.Parser.ParseFrom(stream); InitializeClient(userSetting.JiraServerAddress, userSetting.JiraUserName, userSetting.JiraPassword); if (!string.IsNullOrEmpty(userSetting.ProxyServer)) { JiraRequestProxy myProxy = new JiraRequestProxy(userSetting.ProxyUserName, userSetting.ProxyPassword, userSetting.ProxyServer); client.Proxy = myProxy; } } } } catch (Exception ex) { Console.WriteLine("Exception occurred in JiraController constructor : " + ex.ToString()); } }