示例#1
0
 public static string[] GetCanUploadExtendsion()
 {
     if (_extendsion == null)
     {
         try
         {
             _extendsion = ConfigurationManager.AppSettings["extendsion"].Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries);
         }catch (Exception ex)
         {
             ErrorUnit.WriteErrorLog(ex.ToString(), "GetCanUploadExtendsion");
         }
     }
     return(_extendsion);
 }
示例#2
0
 public static string GetAttachmentTempPath()
 {
     if (_attachmentTempPath == null)
     {
         try
         {
             _attachmentTempPath = ConfigurationManager.AppSettings["attachmentTempPath"];
         }
         catch (Exception ex)
         {
             ErrorUnit.WriteErrorLog(ex.ToString(), "GetAttachmentTempPath");
         }
     }
     return(_attachmentTempPath);
 }