public OWINApplication AddApplication(string path, PathParameters parameters, AppFunc application) { var app = new OWINApplication(path, parameters, application); applications.Add(app); return(app); }
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); } }
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); }
public void RemoveApplication(OWINApplication app) { applications.Remove(app); }