Example #1
0
        protected OperationResult(bool success, IEnumerable <BlockTraceResult <TOperationEvent> > stackTrace, TInput stackInput, TState stackState)
        {
            Success    = success;
            StackState = stackState;
            StackInput = stackInput;

            StackTrace = new System.Collections.ObjectModel.ReadOnlyCollection <BlockTraceResult <TOperationEvent> >(
                stackTrace
                .ToList());

            Events = StackTrace.SelectMany(x => x.FlattenedEvents.Where(e => !e.IsSwallowed)).ToList();
        }