Revert "在IApi中增加上下文Context"
大石头 authored at 2017-03-27 23:22:44
602.00 B
X
using System;
using System.ComponentModel;
using NewLife.Log;
using NewLife.Remoting;

namespace NewLife.MessageQueue
{
    class ClientController : IApi
    {
        /// <summary>Api接口会话</summary>
        public IApiSession Session { get; set; }

        /// <summary>通知</summary>
        /// <param name="msg"></param>
        /// <returns></returns>
        [DisplayName("通知")]
        public Boolean Notify(Message msg)
        {
            XTrace.WriteLine("{0} 收到订阅通知 {1}", Session["user"], msg);

            return true;
        }
    }
}