public HttpHandler() { _Parser = new URLParser(new[] { '/' }); _Instance = new T(); _AllowDispose = true; ParseInterface(); }
public override void Dispose() { if (_AllowDispose) { _Parser = null; if (_Instance is IDisposable) { ((IDisposable)_Instance).Dispose(); } } }
public HttpHandler(T instance) { _Parser = new URLParser(new[] { '/' }); if (instance == null) { _Instance = new T(); _AllowDispose = true; } else { _Instance = instance; _AllowDispose = false; } ParseInterface(); }