private void SaveState(IAsyncStateMachine stateMachine) { using (var stream = new MemoryStream()) { stateMachine.SaveTo(stream); savedState = stream.ToArray(); } }
private void SaveState(IAsyncStateMachine stateMachine) { using (var stream = new MemoryStream()) { stateMachine.SaveTo(stream); savedState = stream.ToArray(); } }