@@ -16,24 +16,30 @@ import IServerPubSub from "../../interfaces/Server/IServerPubSub";
16
16
import IServerBinding from "../../interfaces/Server/IServerBinding" ;
17
17
import IServerInvoker from "../../interfaces/Server/IServerInvoker" ;
18
18
import IServerActor from "../../interfaces/Server/IServerActor" ;
19
+ import IServerJobs from "../../interfaces/Server/IServerJobs" ;
19
20
20
21
import CommunicationProtocolEnum from "../../enum/CommunicationProtocol.enum" ;
21
22
import GRPCServer from "./GRPCServer/GRPCServer" ;
22
23
import GRPCServerPubSub from "./GRPCServer/pubsub" ;
23
24
import GRPCServerBinding from "./GRPCServer/binding" ;
24
25
import GRPCServerInvoker from "./GRPCServer/invoker" ;
25
26
import GRPCServerActor from "./GRPCServer/actor" ;
27
+ import GRPCServerJobs from "./GRPCServer/jobs" ;
26
28
27
29
import HTTPServer from "./HTTPServer/HTTPServer" ;
28
30
import HTTPServerPubSub from "./HTTPServer/pubsub" ;
29
31
import HTTPServerBinding from "./HTTPServer/binding" ;
30
32
import HTTPServerInvoker from "./HTTPServer/invoker" ;
31
33
import HTTPServerActor from "./HTTPServer/actor" ;
34
+ import HTTPServerJobs from "./HTTPServer/jobs" ;
35
+
32
36
import { Settings } from "../../utils/Settings.util" ;
33
37
import { DaprServerOptions } from "../../types/DaprServerOptions" ;
34
38
import DaprClient from "../Client/DaprClient" ;
35
39
import { getClientOptions } from "../../utils/Client.util" ;
36
40
41
+
42
+
37
43
export default class DaprServer {
38
44
// App details
39
45
private readonly serverOptions : DaprServerOptions ;
@@ -43,6 +49,7 @@ export default class DaprServer {
43
49
readonly binding : IServerBinding ;
44
50
readonly invoker : IServerInvoker ;
45
51
readonly actor : IServerActor ;
52
+ readonly jobs : IServerJobs ;
46
53
readonly client : DaprClient ;
47
54
48
55
constructor ( serverOptions : Partial < DaprServerOptions > = { } ) {
@@ -90,6 +97,7 @@ export default class DaprServer {
90
97
this . binding = new GRPCServerBinding ( server ) ;
91
98
this . invoker = new GRPCServerInvoker ( server ) ;
92
99
this . actor = new GRPCServerActor ( server ) ;
100
+ this . jobs = new GRPCServerJobs ( server ) ;
93
101
break ;
94
102
}
95
103
case CommunicationProtocolEnum . HTTP :
@@ -101,6 +109,7 @@ export default class DaprServer {
101
109
this . binding = new HTTPServerBinding ( server ) ;
102
110
this . invoker = new HTTPServerInvoker ( server ) ;
103
111
this . actor = new HTTPServerActor ( server , this . client ) ;
112
+ this . jobs = new HTTPServerJobs ( server ) ;
104
113
break ;
105
114
}
106
115
}
0 commit comments