Пример #1
0
        private async Task <IEnumerable <object> > loadSnapshot(string fileName, Type snapshotType)
        {
            if (string.IsNullOrEmpty(fileName))
            {
                return(Enumerable.Empty <object>());
            }

            return(await _jsonSerializer.DeserializeAsArray(fileName, snapshotType));
        }