Example #1
0
 public ContentServer()
 {
     _subscribers         = new List <IContentListener>();
     _communicator        = CommunicationFactory.GetCommunicator(false);
     _contentDatabase     = new ContentDatabase();
     _notificationHandler = new ContentServerNotificationHandler();
     _fileServer          = new FileServer(_contentDatabase);
     _chatServer          = new ChatServer(_contentDatabase);
     _chatContextServer   = new ChatContextServer(_contentDatabase);
     _serializer          = new Serializer();
     _communicator.Subscribe("Content", _notificationHandler);
 }
 public ChatContextServer(ContentDatabase contentDatabase)
 {
     _contentDatabase = contentDatabase;
     _allMessages     = new List <ChatContext>();
 }
Example #3
0
 public FileServer(ContentDatabase contentDatabase)
 {
     _contentDatabase = contentDatabase;
 }
Example #4
0
 public ChatServer(ContentDatabase contentDatabase)
 {
     _contentDatabase = contentDatabase;
 }