|
@@ -319,32 +319,32 @@ internal final class Echo_EchoServer: ServiceServer {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/// Start the server.
|
|
/// Start the server.
|
|
|
- internal override func handleMethod(_ method: String, handler: Handler, queue: DispatchQueue) throws -> Bool {
|
|
|
|
|
|
|
+ internal override func handleMethod(_ method: String, handler: Handler) throws -> Bool {
|
|
|
let provider = self.provider
|
|
let provider = self.provider
|
|
|
switch method {
|
|
switch method {
|
|
|
case "/echo.Echo/Get":
|
|
case "/echo.Echo/Get":
|
|
|
try Echo_EchoGetSessionBase(
|
|
try Echo_EchoGetSessionBase(
|
|
|
handler: handler,
|
|
handler: handler,
|
|
|
providerBlock: { try provider.get(request: $0, session: $1 as! Echo_EchoGetSessionBase) })
|
|
providerBlock: { try provider.get(request: $0, session: $1 as! Echo_EchoGetSessionBase) })
|
|
|
- .run(queue: queue)
|
|
|
|
|
|
|
+ .run()
|
|
|
return true
|
|
return true
|
|
|
case "/echo.Echo/Expand":
|
|
case "/echo.Echo/Expand":
|
|
|
try Echo_EchoExpandSessionBase(
|
|
try Echo_EchoExpandSessionBase(
|
|
|
handler: handler,
|
|
handler: handler,
|
|
|
providerBlock: { try provider.expand(request: $0, session: $1 as! Echo_EchoExpandSessionBase) })
|
|
providerBlock: { try provider.expand(request: $0, session: $1 as! Echo_EchoExpandSessionBase) })
|
|
|
- .run(queue: queue)
|
|
|
|
|
|
|
+ .run()
|
|
|
return true
|
|
return true
|
|
|
case "/echo.Echo/Collect":
|
|
case "/echo.Echo/Collect":
|
|
|
try Echo_EchoCollectSessionBase(
|
|
try Echo_EchoCollectSessionBase(
|
|
|
handler: handler,
|
|
handler: handler,
|
|
|
providerBlock: { try provider.collect(session: $0 as! Echo_EchoCollectSessionBase) })
|
|
providerBlock: { try provider.collect(session: $0 as! Echo_EchoCollectSessionBase) })
|
|
|
- .run(queue: queue)
|
|
|
|
|
|
|
+ .run()
|
|
|
return true
|
|
return true
|
|
|
case "/echo.Echo/Update":
|
|
case "/echo.Echo/Update":
|
|
|
try Echo_EchoUpdateSessionBase(
|
|
try Echo_EchoUpdateSessionBase(
|
|
|
handler: handler,
|
|
handler: handler,
|
|
|
providerBlock: { try provider.update(session: $0 as! Echo_EchoUpdateSessionBase) })
|
|
providerBlock: { try provider.update(session: $0 as! Echo_EchoUpdateSessionBase) })
|
|
|
- .run(queue: queue)
|
|
|
|
|
|
|
+ .run()
|
|
|
return true
|
|
return true
|
|
|
default:
|
|
default:
|
|
|
return false
|
|
return false
|