@@ -6,6 +6,7 @@ import IClientSecret from '../../interfaces/Client/IClientSecret';
66import IClientHealth from '../../interfaces/Client/IClientHealth' ;
77import IClientMetadata from '../../interfaces/Client/IClientMetadata' ;
88import IClientSidecar from '../../interfaces/Client/IClientSidecar' ;
9+ import IClientActorBuilder from '../../interfaces/Client/IClientActorBuilder' ;
910import IClient from '../../interfaces/Client/IClient' ;
1011
1112import GRPCClientBinding from './GRPCClient/binding' ;
@@ -16,6 +17,7 @@ import GRPCClientSecret from './GRPCClient/secret';
1617import GRPCClientHealth from './GRPCClient/health' ;
1718import GRPCClientMetadata from './GRPCClient/metadata' ;
1819import GRPCClientSidecar from './GRPCClient/sidecar' ;
20+ import GRPCClientActor from './GRPCClient/actor' ;
1921import GRPCClient from './GRPCClient/GRPCClient' ;
2022
2123import HTTPClientBinding from './HTTPClient/binding' ;
@@ -26,6 +28,7 @@ import HTTPClientSecret from './HTTPClient/secret';
2628import HTTPClientHealth from './HTTPClient/health' ;
2729import HTTPClientMetadata from './HTTPClient/metadata' ;
2830import HTTPClientSidecar from './HTTPClient/sidecar' ;
31+ import HTTPClientActor from './HTTPClient/actor' ;
2932import HTTPClient from './HTTPClient/HTTPClient' ;
3033
3134import CommunicationProtocolEnum from '../../enum/CommunicationProtocol.enum' ;
@@ -46,6 +49,7 @@ export default class DaprClient {
4649 readonly health : IClientHealth ;
4750 readonly metadata : IClientMetadata ;
4851 readonly sidecar : IClientSidecar ;
52+ readonly actor : IClientActorBuilder ;
4953
5054 constructor (
5155 daprHost : string
@@ -79,6 +83,7 @@ export default class DaprClient {
7983 this . health = new GRPCClientHealth ( client ) ;
8084 this . metadata = new GRPCClientMetadata ( client ) ;
8185 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
8287 break ;
8388 }
8489 case CommunicationProtocolEnum . HTTP :
@@ -94,6 +99,7 @@ export default class DaprClient {
9499 this . health = new HTTPClientHealth ( client ) ;
95100 this . metadata = new HTTPClientMetadata ( client ) ;
96101 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
97103 break ;
98104 }
99105 }
0 commit comments