Exemplo n.º 1
0
 /// <summary>
 /// fast协议的会话对象
 /// </summary>
 /// <param name="session">会话对象</param>
 /// <param name="middleware">中间件实例</param>
 public FastSession(ISession session, FastMiddleware middleware)
 {
     this.session    = session;
     this.middleware = middleware;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 初始化
 /// </summary>
 /// <param name="middleware">关联的中间件</param>
 /// <returns></returns>
 internal FastApiService Init(FastMiddleware middleware)
 {
     this.Middleware = middleware;
     return(this);
 }