protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         MessageQueueingService.Dispose();
         SubscriptionTrackingService.Dispose();
     }
 }
Beispiel #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (Database != null && !string.IsNullOrWhiteSpace(DatabaseName))
            {
                try
                {
                    Database.Client.DropDatabase(DatabaseName);
                }
                catch (Exception)
                {
                    // Ignore
                }
            }

            if (disposing)
            {
                MessageQueueingService?.Dispose();
            }
        }