コード例 #1
0
 /// <summary>
 /// Use RedisSession. After enabled, you can take RedisSession from environment.AsRedisSession().
 /// </summary>
 public static IAppBuilder UseRedisSession(this IAppBuilder app, RedisSessionOptions options)
 {
     return app.Use(typeof(RedisSessionMiddleware), options);
 }
コード例 #2
0
 public RedisSessionMiddleware(AppFunc next, RedisSessionOptions options)
 {
     this.next = next;
     this.options = options;
 }