@@ -6,6 +6,7 @@ import IClientSecret from '../../interfaces/Client/IClientSecret';
6
6
import IClientHealth from '../../interfaces/Client/IClientHealth' ;
7
7
import IClientMetadata from '../../interfaces/Client/IClientMetadata' ;
8
8
import IClientSidecar from '../../interfaces/Client/IClientSidecar' ;
9
+ import IClientActorBuilder from '../../interfaces/Client/IClientActorBuilder' ;
9
10
import IClient from '../../interfaces/Client/IClient' ;
10
11
11
12
import GRPCClientBinding from './GRPCClient/binding' ;
@@ -16,6 +17,7 @@ import GRPCClientSecret from './GRPCClient/secret';
16
17
import GRPCClientHealth from './GRPCClient/health' ;
17
18
import GRPCClientMetadata from './GRPCClient/metadata' ;
18
19
import GRPCClientSidecar from './GRPCClient/sidecar' ;
20
+ import GRPCClientActor from './GRPCClient/actor' ;
19
21
import GRPCClient from './GRPCClient/GRPCClient' ;
20
22
21
23
import HTTPClientBinding from './HTTPClient/binding' ;
@@ -26,6 +28,7 @@ import HTTPClientSecret from './HTTPClient/secret';
26
28
import HTTPClientHealth from './HTTPClient/health' ;
27
29
import HTTPClientMetadata from './HTTPClient/metadata' ;
28
30
import HTTPClientSidecar from './HTTPClient/sidecar' ;
31
+ import HTTPClientActor from './HTTPClient/actor' ;
29
32
import HTTPClient from './HTTPClient/HTTPClient' ;
30
33
31
34
import CommunicationProtocolEnum from '../../enum/CommunicationProtocol.enum' ;
@@ -46,6 +49,7 @@ export default class DaprClient {
46
49
readonly health : IClientHealth ;
47
50
readonly metadata : IClientMetadata ;
48
51
readonly sidecar : IClientSidecar ;
52
+ readonly actor : IClientActorBuilder ;
49
53
50
54
constructor (
51
55
daprHost : string
@@ -79,6 +83,7 @@ export default class DaprClient {
79
83
this . health = new GRPCClientHealth ( client ) ;
80
84
this . metadata = new GRPCClientMetadata ( client ) ;
81
85
this . sidecar = new GRPCClientSidecar ( client ) ;
86
+ this . actor = new GRPCClientActor ( client ) ; // we use a abstractor here since we interface through a builder with the Actor Runtime
82
87
break ;
83
88
}
84
89
case CommunicationProtocolEnum . HTTP :
@@ -94,6 +99,7 @@ export default class DaprClient {
94
99
this . health = new HTTPClientHealth ( client ) ;
95
100
this . metadata = new HTTPClientMetadata ( client ) ;
96
101
this . sidecar = new HTTPClientSidecar ( client ) ;
102
+ this . actor = new HTTPClientActor ( client ) ; // we use a abstractor here since we interface through a builder with the Actor Runtime
97
103
break ;
98
104
}
99
105
}
0 commit comments