csharp/2881099/csredis/src/CSRedisCore/Events.cs

Events.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CSRedis
{
    /// 
    /// Provides data for the event that is raised when a subscription message is received
    /// 
    public clast RedisSubscriptionReceivedEventArgs : EventArgs
    {
        /// 
        /// The subscription message
        /// 
        public RedisSubscriptionMessage Message { get; private set; }

        internal RedisSubscriptionReceivedEventArgs(RedisSubscriptionMessage message)
        {
            Message = message;
        }
    }

    /// 
    /// Provides data for the event that is raised when a subscription channel is opened or closed
    /// 
    public clast RedisSubscriptionChangedEventArgs : EventArgs
    {
        /// 
        /// The subscription response
        /// 
        public RedisSubscriptionChannel Response { get; private set; }

        internal RedisSubscriptionChangedEventArgs(RedisSubscriptionChannel response)
        {
            Response = response;
        }
    }

    /// 
    /// Provides data for the event that is raised when a transaction command has been processed by the server
    /// 
    public clast RedisTransactionQueuedEventArgs : EventArgs
    {
        /// 
        /// The status code of the transaction command
        /// 
        public string Status { get; private set; }

        /// 
        /// The command that was queued
        /// 
        public string Command { get; private set; }

        /// 
        /// The arguments of the queued command
        /// 
        public object[] Arguments { get; private set; }

        internal RedisTransactionQueuedEventArgs(string status, string command, object[] arguments)
        {
            Status = status;
            Command = command;
            Arguments = arguments;
        }
    }

    /// 
    /// Provides data for the event that is raised when a Redis MONITOR message is received
    /// 
    public clast RedisMonitorEventArgs : EventArgs
    {
        /// 
        /// Monitor output
        /// 
        public object Message { get; private set; }

        internal RedisMonitorEventArgs(object message)
        {
            Message = message;
        }
    }
}