public override void Execute(HttpServerEventArgs e) { throw new NotImplementedException(); }
static void server_HttpRequestReceived(object sender, HttpServerEventArgs e) { server_RequestReceived(sender, e); Console.WriteLine(e.Request.ToString()); }
void RestServer_RequestReceived(object sender, HttpServerEventArgs e) { Command c = commands.Where(command => command.Metadata["Method"].ToString() == e.Request.Method && command.Metadata.ContainsKey("UriConstraint") ? Regex.IsMatch(e.Request.Uri, command.Metadata["UriConstraint"].ToString()) : true).Single().GetExportedObject(); c.Execute(e); }
static void server_HttpRequestReceived(object sender, HttpServerEventArgs e) { server_RequestReceived(sender, e); Console.WriteLine(e.Request.ToString()); }
void RestServer_RequestReceived(object sender, HttpServerEventArgs e) { Command c = commands.Where(command => command.Metadata["Method"].ToString() == e.Request.Method && command.Metadata.ContainsKey("UriConstraint") ? Regex.IsMatch(e.Request.Uri, command.Metadata["UriConstraint"].ToString()) : true).Single().GetExportedObject(); c.Execute(e); }
public override void Execute(HttpServerEventArgs e) { throw new NotImplementedException(); }