Esempio n. 1
0
        /// <summary>
        /// Sets the state of the connection.
        /// </summary>
        /// <param name="genuineEventType">The state of the connection.</param>
        /// <param name="reason">The exception.</param>
        /// <param name="additionalInfo">The additional info.</param>
        public void SignalState(GenuineEventType genuineEventType, Exception reason, object additionalInfo)
        {
            lock (this._connectionStateSignallerLock)
            {
                if (this._connectionStateSignaller == null)
                {
                    this._connectionStateSignaller = new ConnectionStateSignaller(this.Remote, this.ITransportContext.IGenuineEventProvider);
                }

                this._connectionStateSignaller.SetState(genuineEventType, reason, additionalInfo);
            }
        }
        /// <summary>
        /// Sets the state of the connection.
        /// </summary>
        /// <param name="genuineEventType">The state of the connection.</param>
        /// <param name="reason">The exception.</param>
        /// <param name="additionalInfo">The additional info.</param>
        public void SignalState(GenuineEventType genuineEventType, Exception reason, object additionalInfo)
        {
            lock (this._connectionStateSignallerLock)
            {
                if (this._connectionStateSignaller == null)
                    this._connectionStateSignaller = new ConnectionStateSignaller(this.Remote, this.ITransportContext.IGenuineEventProvider);

                this._connectionStateSignaller.SetState(genuineEventType, reason, additionalInfo);
            }
        }