Пример #1
0
 // Fields
 // Results
 // Business constructor
 public LocalOutcomeAcknowledge(
     LocalOutcome outcome
     )
 {
     InitializeResults();
     _outcome = new PredecessorObj<LocalOutcome>(this, RoleOutcome, outcome);
 }
Пример #2
0
            public CorrespondenceFact CreateFact(FactMemento memento)
            {
                LocalOutcome newFact = new LocalOutcome(memento);

                // Create a memory stream from the memento data.
                using (MemoryStream data = new MemoryStream(memento.Data))
                {
                    using (BinaryReader output = new BinaryReader(data))
                    {
                        newFact._resigned = (int)_fieldSerializerByType[typeof(int)].ReadData(output);
                    }
                }

                return newFact;
            }