public void CreateEventBridge() { if (false == Factory.Settings.EnableEvents) { return; } if (null != _connectPoint) { return; } if (null == _activeSinkId) { _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, _ReportEvents_SinkHelper.Id, _ReportEvents2_SinkHelper.Id); } if (_ReportEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) { __ReportEvents_SinkHelper = new _ReportEvents_SinkHelper(this, _connectPoint); return; } if (_ReportEvents2_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) { __ReportEvents2_SinkHelper = new _ReportEvents2_SinkHelper(this, _connectPoint); return; } }
public void DisposeEventBridge() { if (null != __ReportEvents_SinkHelper) { __ReportEvents_SinkHelper.Dispose(); __ReportEvents_SinkHelper = null; } if (null != __ReportEvents2_SinkHelper) { __ReportEvents2_SinkHelper.Dispose(); __ReportEvents2_SinkHelper = null; } _connectPoint = null; }
public void DisposeEventBridge() { if( null != __ReportEvents_SinkHelper) { __ReportEvents_SinkHelper.Dispose(); __ReportEvents_SinkHelper = null; } if( null != __ReportEvents2_SinkHelper) { __ReportEvents2_SinkHelper.Dispose(); __ReportEvents2_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, _ReportEvents_SinkHelper.Id,_ReportEvents2_SinkHelper.Id); if(_ReportEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) { __ReportEvents_SinkHelper = new _ReportEvents_SinkHelper(this, _connectPoint); return; } if(_ReportEvents2_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) { __ReportEvents2_SinkHelper = new _ReportEvents2_SinkHelper(this, _connectPoint); return; } }