public void DisposeEventBridge() { if( null != __EProjectApp2_SinkHelper) { __EProjectApp2_SinkHelper.Dispose(); __EProjectApp2_SinkHelper = null; } _connectPoint = null; }
public void CreateEventBridge() { if(false == Factory.Settings.EnableEvents) return; if (null != _connectPoint) return; if (null == _activeSinkId) _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, _EProjectApp2_SinkHelper.Id); if(_EProjectApp2_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) { __EProjectApp2_SinkHelper = new _EProjectApp2_SinkHelper(this, _connectPoint); return; } }