Exemplo n.º 1
0
        public static void UseOkanshi(this HttpConfiguration configuration, OkanshiWebApiOptions options = null)
        {
            var apiOptions = options ?? new OkanshiWebApiOptions();
            var middleware = new OkanshiMiddleware(apiOptions);

            configuration.MessageHandlers.Add(middleware);
        }
Exemplo n.º 2
0
 public OkanshiMiddleware(OkanshiWebApiOptions options)
 {
     this.options = options;
 }