public virtual void DisposeEventBridge() { if (null != _dispAttachmentEvents_SinkHelper) { _dispAttachmentEvents_SinkHelper.Dispose(); _dispAttachmentEvents_SinkHelper = null; } _connectPoint = null; }
public virtual void CreateEventBridge() { if (false == Factory.Settings.EnableEvents) { return; } if (null != _connectPoint) { return; } if (null == _activeSinkId) { _activeSinkId = SinkHelper.GetConnectionPoint(this, ref _connectPoint, NetOffice.AccessApi.Behind.EventContracts.DispAttachmentEvents_SinkHelper.Id); } if (NetOffice.AccessApi.Behind.EventContracts.DispAttachmentEvents_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase)) { _dispAttachmentEvents_SinkHelper = new NetOffice.AccessApi.Behind.EventContracts.DispAttachmentEvents_SinkHelper(this, _connectPoint); return; } }