示例#1
0
        public void DisposeEventBridge()
        {
            if (null != _applicationEvents2_SinkHelper)
            {
                _applicationEvents2_SinkHelper.Dispose();
                _applicationEvents2_SinkHelper = null;
            }
            if (null != _applicationEvents3_SinkHelper)
            {
                _applicationEvents3_SinkHelper.Dispose();
                _applicationEvents3_SinkHelper = null;
            }
            if (null != _applicationEvents4_SinkHelper)
            {
                _applicationEvents4_SinkHelper.Dispose();
                _applicationEvents4_SinkHelper = null;
            }

            _connectPoint = null;
        }
示例#2
0
        public void CreateEventBridge()
        {
            if (false == Factory.Settings.EnableEvents)
            {
                return;
            }

            if (null != _connectPoint)
            {
                return;
            }

            if (null == _activeSinkId)
            {
                _activeSinkId = SinkHelper.GetConnectionPoint2(this, ref _connectPoint, ApplicationEvents2_SinkHelper.Id, ApplicationEvents3_SinkHelper.Id, ApplicationEvents4_SinkHelper.Id);
            }


            if (ApplicationEvents2_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase))
            {
                _applicationEvents2_SinkHelper = new ApplicationEvents2_SinkHelper(this, _connectPoint);
                return;
            }

            if (ApplicationEvents3_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase))
            {
                _applicationEvents3_SinkHelper = new ApplicationEvents3_SinkHelper(this, _connectPoint);
                return;
            }

            if (ApplicationEvents4_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase))
            {
                _applicationEvents4_SinkHelper = new ApplicationEvents4_SinkHelper(this, _connectPoint);
                return;
            }
        }
示例#3
0
        public void DisposeEventBridge()
        {
			if( null != _applicationEvents2_SinkHelper)
			{
				_applicationEvents2_SinkHelper.Dispose();
				_applicationEvents2_SinkHelper = null;
			}
			if( null != _applicationEvents3_SinkHelper)
			{
				_applicationEvents3_SinkHelper.Dispose();
				_applicationEvents3_SinkHelper = null;
			}
			if( null != _applicationEvents4_SinkHelper)
			{
				_applicationEvents4_SinkHelper.Dispose();
				_applicationEvents4_SinkHelper = null;
			}

			_connectPoint = null;
		}
示例#4
0
		public void CreateEventBridge()
        {
			if(false == Factory.Settings.EnableEvents)
				return;
	
			if (null != _connectPoint)
				return;
	
            if (null == _activeSinkId)
				_activeSinkId = SinkHelper.GetConnectionPoint2(this, ref _connectPoint, ApplicationEvents2_SinkHelper.Id,ApplicationEvents3_SinkHelper.Id,ApplicationEvents4_SinkHelper.Id);


			if(ApplicationEvents2_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase))
			{
				_applicationEvents2_SinkHelper = new ApplicationEvents2_SinkHelper(this, _connectPoint);
				return;
			}

			if(ApplicationEvents3_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase))
			{
				_applicationEvents3_SinkHelper = new ApplicationEvents3_SinkHelper(this, _connectPoint);
				return;
			}

			if(ApplicationEvents4_SinkHelper.Id.Equals(_activeSinkId, StringComparison.InvariantCultureIgnoreCase))
			{
				_applicationEvents4_SinkHelper = new ApplicationEvents4_SinkHelper(this, _connectPoint);
				return;
			} 
        }