Пример #1
0
        public async Task Delete(string id, CancellationToken token = default)
        {
            id.VerifyNotEmpty(nameof(id));

            IMetadataRecordActor actor = _actorHost !.GetActor <IMetadataRecordActor>((ActorKey)id);
            await actor.Delete(token);
        }
Пример #2
0
        public async Task Set(MetadataRecord record, CancellationToken token = default)
        {
            record.VerifyNotNull(nameof(record));

            IMetadataRecordActor actor = _actorHost !.GetActor <IMetadataRecordActor>((ActorKey)record.Id);
            await actor.Set(record, token);
        }