Exemplo n.º 1
0
        private void TrySendingUnhandledExceptionEmail(Exception exception)
        {
            IStatsDownloadApiEmailService emailService = null;

            try
            {
                emailService = WindsorContainer.Instance.Resolve <IStatsDownloadApiEmailService>();
                emailService.SendUnhandledExceptionEmail(exception);
            }
            finally
            {
                WindsorContainer.Instance.Release(emailService);
            }
        }