Esempio n. 1
0
        internal async Task SuspendAsync()
        {
            await _suspensionManager.SuspendAsync(
                serializer =>
            {
                FunctionManager.Serialize(serializer);
                return(Graph.SerializeAsync(serializer));
            }).ConfigureAwait(false);

            string description = string.Join('\n', FunctionManager.Functions.Select(f => f.ToString()));
            await _suspensionManager.UpdateUserSessionAsync(description).ConfigureAwait(false);

            await _suspensionManager.DeleteOldFilesAsync().ConfigureAwait(false);
        }