コード例 #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;
 }
コード例 #6
0
        private void LoadDomain()
        {
            _community.Perform(async delegate
            {
                var domain = await _community.AddFactAsync(new Domain());
                Domain = domain;

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