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); }
public static string GetAttachmentTempPath() { if (_attachmentTempPath == null) { try { _attachmentTempPath = ConfigurationManager.AppSettings["attachmentTempPath"]; } catch (Exception ex) { ErrorUnit.WriteErrorLog(ex.ToString(), "GetAttachmentTempPath"); } } return(_attachmentTempPath); }