Beispiel #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         Container?.Dispose();
         Microservice?.Dispose();
         FirstChanceExceptionListener?.Dispose();
         UnhandledExceptionListener?.Dispose();
     }
 }
Beispiel #2
0
        private MicroserviceInitializer AttachExceptionListeners()
        {
            FirstChanceExceptionListener = new FirstChanceExceptionListener(Logger);
            FirstChanceExceptionListener.Listen();

            UnhandledExceptionListener = new UnhandledExceptionListener(Logger);
            UnhandledExceptionListener.Listen();

            return(this);
        }