Esempio n. 1
0
        public static void BuildApp(IAppBuilder builder, PeerCastApplication application)
        {
            var app = new YPChannelsHostOwinApp(application);

            builder.MapGET("/ypchannels/index.txt", sub => {
                sub.UseAuth(OutputStreamType.Interface);
                sub.Run(app.Invoke);
            });
        }
        public static void BuildApp(IAppBuilder builder, PeerCastApplication application)
        {
            var app = new YPChannelsHostOwinApp(application);

            builder.Map("/ypchannels/index.txt", sub => {
                sub.UseAllowMethods("GET");
                sub.MapMethod("GET", withmethod => {
                    withmethod.UseAuth(OutputStreamType.Interface);
                    withmethod.Run(app.Invoke);
                });
            });
        }
Esempio n. 3
0
        protected override void OnStart()
        {
            var owin = Application.Plugins.OfType <OwinHostPlugin>().FirstOrDefault();

            appRegistration = owin?.OwinHost?.Register(builder => YPChannelsHostOwinApp.BuildApp(builder, Application));
        }