Example #1
0
            public CorrespondenceFact CreateFact(FactMemento memento)
            {
                SessionDelete newFact = new SessionDelete(memento);

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

                return newFact;
            }
Example #2
0
 // Fields
 // Results
 // Business constructor
 public SessionUndelete(
     SessionDelete undeleted
     )
 {
     InitializeResults();
     _undeleted = new PredecessorObj<SessionDelete>(this, GetRoleUndeleted(), undeleted);
 }
Example #3
0
            public CorrespondenceFact CreateFact(FactMemento memento)
            {
                SessionDelete newFact = new SessionDelete(memento);

                return newFact;
            }