Пример #1
0
 public static string GetAppSettingValue(CommonUtils.AppSettingKey keyIn)
 {
     using (CmsEntities cee = new CmsEntities())
     {
         string keyInText = keyIn.ToString();
         return (from x in cee.AppSettings where string.Compare(keyInText, x.Key, StringComparison.OrdinalIgnoreCase) == 0 select x.Value).FirstOrDefault();
     }
 }
Пример #2
0
 public static Task<List<SystemReference>> GetIssueReferences(int issueId, CommonUtils.SystemReferenceTypeCode systemReferenceTypeCode)
 {
     var task = new TaskCompletionSource<List<SystemReference>>();
     var cee = new CmsWebServiceClient(Utils.WcfBinding, Utils.WcfEndPoint);
     cee.GetIssueReferencesCompleted += (s, e) => task.SetResult(e.Result);
     cee.GetIssueReferencesAsync(issueId, systemReferenceTypeCode.ToString());
     return task.Task;
 }