SportingSolutions.Udapi.Sdk.Tests.MockedStreamController.Register C# (CSharp) 메소드

Register() 공개 정적인 메소드

public static Register ( IDispatcher dispatcher ) : void
dispatcher IDispatcher
리턴 void
        public static void Register(IDispatcher dispatcher)
        {
            Instance = new MockedStreamController(dispatcher);
        }

Usage 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());
        }
All Usage Examples Of SportingSolutions.Udapi.Sdk.Tests.MockedStreamController::Register