コード例 #1
0
        public TCPMessageSender(ITCPSender server, PresenterModel model, ClassroomModel classroom)
        {
            this.m_Model = model;
            this.m_Classroom = classroom;
            this.m_Sender = server;

            // Initialize the message chunking utilities.
            this.m_Encoder = new Chunk.ChunkEncoder();

            // Most of the same services are created as in RTPMessageSender, with the exception
            // (for now, at least) that there is no BeaconService.

            // Create the PresenterNetworkService which will watch for changes to the model and send messages.
            this.m_PresenterNetworkService = new PresenterNetworkService(this, this.m_Model);

            // Create the StudentSubmissionsNetworkService which will watch for requests to submit and send messages.
            this.m_StudentSubmissionNetworkService = new StudentSubmissionNetworkService(this, this.m_Model);

            // Create the SynchronizationNetworkService which will watch for all synchronization messages.
            //this.m_SynchronizationNetworkService = new SynchronizationNetworkService(this, this.m_Model);

            // Create the ScriptingNetworkService which will watch for all scripting messages.
            //this.m_ScriptingNetworkService = new ScriptingNetworkService(this, this.m_Model);
        }
コード例 #2
0
ファイル: TCPMessageSender.cs プロジェクト: zhujingcheng/CP3
        public TCPMessageSender(ITCPSender server, PresenterModel model, ClassroomModel classroom)
        {
            this.m_Model     = model;
            this.m_Classroom = classroom;
            this.m_Sender    = server;

            // Initialize the message chunking utilities.
            this.m_Encoder = new Chunk.ChunkEncoder();

            // Most of the same services are created as in RTPMessageSender, with the exception
            // (for now, at least) that there is no BeaconService.

            // Create the PresenterNetworkService which will watch for changes to the model and send messages.
            this.m_PresenterNetworkService = new PresenterNetworkService(this, this.m_Model);

            // Create the StudentSubmissionsNetworkService which will watch for requests to submit and send messages.
            this.m_StudentSubmissionNetworkService = new StudentSubmissionNetworkService(this, this.m_Model);

            // Create the SynchronizationNetworkService which will watch for all synchronization messages.
            //this.m_SynchronizationNetworkService = new SynchronizationNetworkService(this, this.m_Model);

            // Create the ScriptingNetworkService which will watch for all scripting messages.
            //this.m_ScriptingNetworkService = new ScriptingNetworkService(this, this.m_Model);
        }
コード例 #3
0
 public Sensor(IMetricsProvider metricPovider, ITCPSender client, IOutputLog outputLog)
 {
     _client        = client;
     _metricPovider = metricPovider;
     _outputLog     = outputLog;
 }