protected virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { if (snsClient != null) { snsClient.Dispose(); snsClient = null; } if (sqsClient != null) { sqsClient.Dispose(); sqsClient = null; } } this.disposed = true; } }