public void Module() { // only the ctor requires UnmanagedCode module.Init(app); module.Authenticate += new FormsAuthenticationEventHandler(Authenticate); module.Authenticate -= new FormsAuthenticationEventHandler(Authenticate); module.Dispose(); // but doesn't implement IDisposable }
public void Dispose() { _formsAuthenticationModule.Dispose(); _formsAuthenticationModule = null; GC.SuppressFinalize(this); }