@@ -105,7 +105,7 @@ export default class ActorClientGRPC implements IClientActor {
105
105
} ) ;
106
106
}
107
107
108
- async reminderCreate ( actorType : string , actorId : string , name : string , reminder : ActorReminderType ) : Promise < void > {
108
+ async registerActorReminder ( actorType : string , actorId : string , name : string , reminder : ActorReminderType ) : Promise < void > {
109
109
const msgService = new RegisterActorReminderRequest ( ) ;
110
110
msgService . setActorType ( actorType ) ;
111
111
msgService . setActorId ( actorId ) ;
@@ -136,39 +136,7 @@ export default class ActorClientGRPC implements IClientActor {
136
136
} ) ;
137
137
}
138
138
139
- // @todo : not implemented, cannot find the gRPC bindings
140
- // async reminderGet(actorType: string, actorId: string, name: string): Promise<void> {
141
- // const msgService = new RegisterActorReminderRequest();
142
- // msgService.setActorType(actorType);
143
- // msgService.setActorId(actorId);
144
- // msgService.setName(name);
145
-
146
- // if (reminder.data) {
147
- // msgService.setData(Buffer.from(reminder.data, "utf-8"))
148
- // }
149
-
150
- // if (reminder.period) {
151
- // msgService.setPeriod(reminder.period);
152
- // }
153
-
154
- // if (reminder.dueTime) {
155
- // msgService.setDueTime(reminder.dueTime);
156
- // }
157
-
158
- // return new Promise(async (resolve, reject) => {
159
- // const client = await GRPCClientSingleton.getClient();
160
- // client.registerActorReminder(msgService, (err, res) => {
161
- // if (err) {
162
- // return reject(err);
163
- // }
164
-
165
- // // https://docs.dapr.io/reference/api/actors_api/#http-response-codes-3
166
- // return resolve();
167
- // });
168
- // });
169
- // }
170
-
171
- async reminderDelete ( actorType : string , actorId : string , name : string ) : Promise < void > {
139
+ async unregisterActorReminder ( actorType : string , actorId : string , name : string ) : Promise < void > {
172
140
const msgService = new UnregisterActorReminderRequest ( ) ;
173
141
msgService . setActorType ( actorType ) ;
174
142
msgService . setActorId ( actorId ) ;
@@ -187,7 +155,7 @@ export default class ActorClientGRPC implements IClientActor {
187
155
} ) ;
188
156
}
189
157
190
- async timerCreate ( actorType : string , actorId : string , name : string , timer : ActorTimerType ) : Promise < void > {
158
+ async registerActorTimer ( actorType : string , actorId : string , name : string , timer : ActorTimerType ) : Promise < void > {
191
159
const msgService = new RegisterActorTimerRequest ( ) ;
192
160
msgService . setActorType ( actorType ) ;
193
161
msgService . setActorId ( actorId ) ;
@@ -222,7 +190,7 @@ export default class ActorClientGRPC implements IClientActor {
222
190
} ) ;
223
191
}
224
192
225
- async timerDelete ( actorType : string , actorId : string , name : string ) : Promise < void > {
193
+ async unregisterActorTimer ( actorType : string , actorId : string , name : string ) : Promise < void > {
226
194
const msgService = new UnregisterActorTimerRequest ( ) ;
227
195
msgService . setActorType ( actorType ) ;
228
196
msgService . setActorId ( actorId ) ;
0 commit comments