Ejemplo n.º 1
0
        private async Task RefreshDataAsync(INonTerminalDescriptor descriptor, IEnumerable <ITerminalDescriptor> freshComposition)
        {
            await UpdateCompositionAndAcquireAdditionsAsync(descriptor, freshComposition);

            EventsAggregator.PublishDataChangedEvent(descriptor);
            EventsAggregator.PublishCompositionChangedEvent(descriptor);
        }
Ejemplo n.º 2
0
        private async Task RefreshDataAsync(ITerminalDescriptor descriptor, IInstanceRetrievalContext <TData> freshData)
        {
            var instance = DataPool.Retrieve(descriptor);

            await DataPool.SaveAsync(descriptor, freshData);

            EventsAggregator.PublishDataChangedEvent(descriptor);
            EventsAggregator.PublishInstanceChangedEvent(new InstanceChangedEventArgs <TData>(descriptor, instance));
        }