using System;
namespace EvtSource
{
public class DisconnectEventArgs : EventArgs
{
///
/// Reconnect delay requested by server
///
public int ReconnectDelay { get; private set; }
///
/// Exception that caused the disconnect, null if graceful disconnect.
///
public Exception Exception { get; private set; }
internal DisconnectEventArgs(int reconnectDelay, Exception exception)
{
ReconnectDelay = reconnectDelay;
Exception = exception;
}
}
}