Exemple #1
0
        internal async Task RefreshData(IServiceControl serviceControl)
        {
            if (Data != null)
            {
                return;
            }

            Data = (await serviceControl.GetMessageData(this)).Select(kvp => new SagaMessageDataItem {
                Key = kvp.Key, Value = kvp.Value
            }).ToList();
        }
        internal void RefreshData(IServiceControl serviceControl)
        {
            if (Data != null)
            {
                return;
            }

            Data = serviceControl.GetMessageData(this).Select(kvp => new SagaMessageDataItem { Key = kvp.Key, Value = kvp.Value }).ToList();
        }