示例#1
0
        public OAuthMiddleware(
            AppDelegate next,
            OAuthConfiguration config,
            IDictionary<string, object> env,
            ResultDelegate result,
            Action<Exception> fault)
        {
            m_config = config;
             m_env = env;
             m_result = result;

             m_ctx = new OAuthContext(next, m_env, m_result, fault);
        }
示例#2
0
文件: OAuth.cs 项目: dustyburwell/vow
 public static IAppBuilder UseOAuth(this IAppBuilder builder, OAuthConfiguration configuration)
 {
     return builder.Use(Middleware, configuration);
 }
示例#3
0
文件: OAuth.cs 项目: dustyburwell/vow
 public static AppDelegate Middleware(AppDelegate app, OAuthConfiguration config)
 {
     return (env, result, fault) => new OAuthMiddleware(app, config, env, result, fault).Handle();
 }