Class Utilities
A utility class that provides common methods.
public static class Utilities- Inheritance
- 
      
      Utilities
Methods
- Dispose(IDisposable)
- Disposes specified value and frees resources associated with it. 
- Dispose<T>(ref T?)
- Disposes specified value and frees resources associated with it. 
- Nop()
- A no-operation method that performs no action. 
- Nop(Exception)
- A no-operation method that performs no action but allows logging of exceptions. 
- RaiseDoApplicationEvents()
- Raises the DoApplicationEvents event. 
- RunWithTimeout(Func<Task>, int)
- Runs a task with a specified timeout. 
Events
- DoApplicationEvents
- Occurs when application events need to be processed. 
- NopException
- Occurs when an exception is passed to the Nop(Exception) method. This event allows subscribers to handle or log suppressed exceptions in a centralized manner.