Beispiel #1
0
 public PowerLineEndPoint AddHandler(string endpointName, PowerLineHandleMethod httpMethod, Action <PowerLineContext> func)
 {
     return(this.AddHandler(endpointName, httpMethod.ToString(), func));
 }
Beispiel #2
0
 public PowerLineHandler AsMethod(PowerLineHandleMethod httpMethod) => this.AsMethod(httpMethod.ToString());
Beispiel #3
0
 public static PowerLineHandler Create(PowerLineHandleMethod httpMethod, Action <PowerLineContext> mainFunction) => Create(httpMethod.ToString(), mainFunction);
Beispiel #4
0
 public PowerLineHandler(PowerLineHandleMethod httpMethod) : this(httpMethod.ToString())
 {
 }