Example #1
0
        public Controller(IControllerHostLocal app)
        {
            App = app;

            Random random = new();

            lastOutboundMessage = ushort.MaxValue;
            nextEndpointId      = random.Next(int.MaxValue);

            //default capabilities
            Capabilities = new CLRCapabilities();
        }
Example #2
0
        //private FifoBuffer m_inboundData;

        //private Thread m_inboundDataThread;

        //private Thread m_stateMachineThread;

        //private ManualResetEvent m_evtShutdown;

        //private State m_state;
        //private CLRCapabilities capabilities;
        //private WaitHandle[] m_waitHandlesRead;

        public Controller(string marker, IControllerHostLocal app)
        {
            this.marker = marker;
            App         = app;

            Random random = new Random();

            lastOutboundMessage = random.Next(65536);
            nextEndpointId      = random.Next(int.MaxValue);
            //m_state = new State(this);

            //default capabilities
            Capabilities = new CLRCapabilities();
        }
Example #3
0
        public Controller( string marker, IControllerHostLocal app )
        {
            m_marker = marker;
            m_app    = app;

            Random random = new Random();

            m_lastOutboundMessage = random.Next( 65536 );
            m_nextEndpointId      = random.Next( int.MaxValue );

            m_state = new State( this );
            
            //default capabilities
            m_capabilities = new CLRCapabilities();
        }
Example #4
0
        public Controller(string marker, IControllerHostLocal app, bool asynchronousProcessing)
        {
            m_marker = marker;
            m_app    = app;
            m_asynchronousProcessing = asynchronousProcessing;

            Random random = new Random();

            m_lastOutboundMessage = random.Next(65536);
            m_nextEndpointId      = random.Next(int.MaxValue);

            m_state = new State(this);

            //default capabilities
            m_capabilities = new CLRCapabilities();
        }