using System;
namespace EventStore.ClientAPI
{
///
/// Event Arguments for the event raised when an fails
/// to authenticate against an Event Store server.
///
public class ClientAuthenticationFailedEventArgs : EventArgs
{
///
/// A reason for authentication failure, if known.
///
public string Reason { get; private set; }
///
/// The responsible for raising the event.
///
public IEventStoreConnection Connection { get; private set; }
///
/// Constructs a new instance of .
///
/// The responsible for raising the event.
/// A reason for authentication failure, if known.
public ClientAuthenticationFailedEventArgs(IEventStoreConnection connection, string reason)
{
Connection = connection;
Reason = reason;
}
}
}