Beispiel #1
0
 public override void Execute(HttpServerEventArgs e)
 {
     throw new NotImplementedException();
 }
Beispiel #2
0
 static void server_HttpRequestReceived(object sender, HttpServerEventArgs e)
 {
     server_RequestReceived(sender, e);
     Console.WriteLine(e.Request.ToString());
 }
Beispiel #3
0
        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);
        }
Beispiel #4
0
 static void server_HttpRequestReceived(object sender, HttpServerEventArgs e)
 {
     server_RequestReceived(sender, e);
     Console.WriteLine(e.Request.ToString());
 }
Beispiel #5
0
 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);
 }
Beispiel #6
0
 public override void Execute(HttpServerEventArgs e)
 {
     throw new NotImplementedException();
 }