Пример #1
0
 // Results
 // Business constructor
 public Message(
     MessageBoard messageBoard
     ,Domain domain
     ,string text
     )
 {
     _unique = Guid.NewGuid();
     InitializeResults();
     _messageBoard = new PredecessorObj<MessageBoard>(this, GetRoleMessageBoard(), messageBoard);
     _domain = new PredecessorObj<Domain>(this, GetRoleDomain(), domain);
     _text = text;
 }
Пример #2
0
            public CorrespondenceFact CreateFact(FactMemento memento)
            {
                Domain newFact = new Domain(memento);

                return newFact;
            }
Пример #3
0
 public CorrespondenceFact GetNullInstance()
 {
     return(Domain.GetNullInstance());
 }
Пример #4
0
 public CorrespondenceFact GetUnloadedInstance()
 {
     return(Domain.GetUnloadedInstance());
 }
Пример #5
0
 public void WriteFactData(CorrespondenceFact obj, BinaryWriter output)
 {
     Domain fact = (Domain)obj;
 }
        private void LoadDomain()
        {
            _community.Perform(async delegate
            {
                var domain = await _community.AddFactAsync(new Domain());
                Domain = domain;

                _community.BeginSending();
                _community.BeginReceiving();
            });
        }