Example #1
0
        /// <summary>
        /// Raise the DisconnectWarning event.
        /// </summary>
        /// <param name="e">
        /// The event arguments.
        /// </param>
        protected virtual void OnDisconnectWarning(MxDisconnectEventArgs e)
        {
            var handler = this.DisconnectWarning;

            if (handler != null)
            {
                handler(this, e);
            }
        }
 private void OnClientDisconnectWarning(object sender, MxDisconnectEventArgs e)
 {
     this.ClientDisconnectAccumulator = e.DisconnectAccumulator;
 }
        private void DispatcherOnClientDisconnectWarning(object sender, MxDisconnectEventArgs mxDisconnectEventArgs)
        {

        }
Example #4
0
 /// <summary>
 /// Handle receiving a DisconnectWarning event from a client.
 /// </summary>
 /// <param name="sender">
 /// The sender of the event.
 /// </param>
 /// <param name="e">
 /// The event arguments.
 /// </param>
 private void OnClientDisconnectWarning(object sender, MxDisconnectEventArgs e)
 {
     OnClientDisconnectWarning(e);
 }
Example #5
0
 private void OnClientDisconnectWarning(object sender, MxDisconnectEventArgs e)
 {
     this.IsPotentiallyDisconnecting = true;
     this.m_LastDisconnectionWarningTime = DateTime.Now;
     this.DisconnectingForSeconds = e.DisconnectAccumulator / 30.0;
 }
Example #6
0
 /// <summary>
 /// Raise the ClientDisconnectWarning event.
 /// </summary>
 /// <param name="e">
 /// The event arguments.
 /// </param>
 protected virtual void OnClientDisconnectWarning(MxDisconnectEventArgs e)
 {
     var handler = ClientDisconnectWarning;
     handler?.Invoke(this, e);
 }
Example #7
0
 /// <summary>
 /// Handle receiving a DisconnectWarning event from a client.
 /// </summary>
 /// <param name="sender">
 /// The sender of the event.
 /// </param>
 /// <param name="e">
 /// The event arguments.
 /// </param>
 private void OnClientDisconnectWarning(object sender, MxDisconnectEventArgs e)
 {
     this.OnClientDisconnectWarning(e);
 }
 private void DispatcherOnClientDisconnectWarning(object sender, MxDisconnectEventArgs mxDisconnectEventArgs)
 {
 }
Example #9
0
        /// <summary>
        /// Raise the ClientDisconnectWarning event.
        /// </summary>
        /// <param name="e">
        /// The event arguments.
        /// </param>
        protected virtual void OnClientDisconnectWarning(MxDisconnectEventArgs e)
        {
            var handler = ClientDisconnectWarning;

            handler?.Invoke(this, e);
        }
Example #10
0
 /// <summary>
 /// Raise the ClientDisconnectWarning event.
 /// </summary>
 /// <param name="e">
 /// The event arguments.
 /// </param>
 protected virtual void OnClientDisconnectWarning(MxDisconnectEventArgs e)
 {
     var handler = this.ClientDisconnectWarning;
     if (handler != null)
     {
         handler(this, e);
     }
 }