Beispiel #1
0
 /// <summary>
 /// Does actual explicit disposal of available managed resources
 /// </summary>
 protected override void OnDisposing()
 {
     this._currentServer = null;
     base.OnDisposing();
 }
Beispiel #2
0
        /// <summary>
        /// Creates an instance of <see cref="ServerEventsProvider"/>
        /// </summary>
        /// <param name="currentServer">An instance of <see cref="ModbusServerBase"/> to use</param>
        internal ServerEventsProvider(ModbusServerBase currentServer)
        {
            Guard.AgainstNullReference(currentServer, "currentServer");

            this._currentServer = currentServer;
        }