/// <summary> /// Enables a factory to reuse an existing handler instance. /// </summary> /// <param name="handler">The <see cref="IHttpHandler"/> object to reuse. </param> public void ReleaseHandler(IHttpHandler handler) { IDashboardHandler apiHandler = handler as IDashboardHandler; if (apiHandler != null && !apiHandler.IsReusable) { apiHandler.Dispose(); apiHandler = null; } }