Example #1
0
        public OWINApplication AddApplication(string path, PathParameters parameters, AppFunc application)
        {
            var app = new OWINApplication(path, parameters, application);

            applications.Add(app);
            return(app);
        }
Example #2
0
 protected override void OnStart()
 {
   base.OnStart();
   var owinhost =
     Application.PeerCast.OutputStreamFactories.FirstOrDefault(factory => factory is OWINHostOutputStreamFactory) as OWINHostOutputStreamFactory;
   if (owinhost!=null) {
     if (application!=null) {
       owinhost.RemoveApplication(application);
     }
     application = owinhost.AddApplication("/admin", PathParameters.None, OnProcess);
   }
 }
Example #3
0
 public OWINHostOutputStream(
     PeerCast peercast,
     Stream input_stream,
     Stream output_stream,
     EndPoint remote_endpoint,
     AccessControlInfo access_control,
     HTTPRequest request,
     byte[] header,
     OWINApplication application)
     : base(peercast, input_stream, output_stream, remote_endpoint, access_control, null, header)
 {
     this.request     = request;
     this.application = application;
     Logger.Debug("Initialized: Remote {0}", remote_endpoint);
 }
Example #4
0
 public void RemoveApplication(OWINApplication app)
 {
     applications.Remove(app);
 }