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