Am not sure if am repeating this question. For Code violation for throwing System.ObjectDisposedException. Statndard solution is to have below function call for each function
private void CheckDisposed()
{
throw new ObjectDisposedException(GetType().FullName);
}
more here https://stackoverflow.com/a/1964521/1481690
Instead of calling this method in each function.How can i make this happen for all functions globally like in single place across application. Am using Mvc5.