Exemplo n.º 1
0
 // 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;
 }
Exemplo n.º 2
0
            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;
            }