// Results // Business constructor public Message( MessageBoard messageBoard ,Domain domain ,string text ) { _unique = Guid.NewGuid(); InitializeResults(); _messageBoard = new PredecessorObj<MessageBoard>(this, RoleMessageBoard, messageBoard); _domain = new PredecessorObj<Domain>(this, RoleDomain, domain); _text = text; }
public CorrespondenceFact CreateFact(FactMemento memento) { Domain newFact = new Domain(memento); // Create a memory stream from the memento data. using (MemoryStream data = new MemoryStream(memento.Data)) { using (BinaryReader output = new BinaryReader(data)) { } } return newFact; }