Simple StreamController that mocks out the AMPQ stream controller
Inheritance: StreamController
Example #1
0
        public void InitialiseStreamController()
        {
            ((Configuration)UDAPI.Configuration).UseEchos = false;

            // register a mocked version of StreamController that doesn't
            // require any AMPQ server. It behaves exactly as StreamController,
            // except for the fact that doesn't establish a connection
            MockedStreamController.Register(new UpdateDispatcher());
        }
Example #2
0
 public void Initialise()
 {
     ((Configuration)UDAPI.Configuration).UseEchos = false;
     MockedStreamController.Register(new UpdateDispatcher());
 }
 public static void Register(IDispatcher dispatcher)
 {
     Instance = new MockedStreamController(dispatcher);
 }
Example #4
0
 public static void Register(IDispatcher dispatcher)
 {
     Instance = new MockedStreamController(dispatcher);
 }