public override void CloseEventManager() { if (_eventManager != null) { _eventManager.Close(); _eventManager = null; } }
public override async Task CloseEventManager(AsyncWrappingCommonArgs async) { if (_eventManager != null) { await _eventManager.Close(async).ConfigureAwait(false); _eventManager = null; } }
public void CloseEventManager() { lock (SyncObject) { if (_eventManager != null) { _eventManager.Close(); _eventManager = null; } } }