public BaseWebService(string name, string contentPath, bool hasContent) { if (hasContent) { this.basePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, contentPath); #if (DEBUG) this.basePath = this.basePath.Substring(0, this.basePath.IndexOf("\\Sandbox")); this.basePath = Path.Combine(this.basePath, "WebInterface", contentPath); #endif } if (!Directory.Exists(basePath)) { throw new DirectoryNotFoundException(this.basePath); } if (string.IsNullOrEmpty(name)) { throw new ArgumentNullException("name"); } this.baseMimeTypeHelper = MimeTypeHelper.GetInstance(); this.baseServiceName = name; //this.baseSessionManager = SessionManager.GetInstance(); }
public static MimeTypeHelper GetInstance() { if (INSTANCE == null) { INSTANCE = new MimeTypeHelper(); } return(INSTANCE); }