Exemple #1
0
        public void Start()
        {
            Logger.SetAdditionalLogger(WEX.Logging.Interop.Log.Comment);

            WiFiDirectTestLogger.Log("Starting remote server on port {0}", listenPort);

            RemoteCommandServer remoteCommandServer = new RemoteCommandServer(
                new Type[]
            {
                typeof(DOT11_MAC_ADDRESS),
                typeof(WFDSvcWrapperHandle),
                typeof(WiFiDirectServiceStatus),
                typeof(List <WiFiDirectServiceConfigurationMethod>),
                typeof(List <WFDSvcWrapperHandle>),
                typeof(ServiceAdvertiserInfo),
                typeof(DiscoveredServiceInfo),
                typeof(ProvisioningInfoWrapper),
                typeof(ServiceSessionInfo),
                typeof(DOT11_WPS_CONFIG_METHOD),
                typeof(List <ServiceAdvertiserInfo>),
                typeof(List <String>)
            },
                new object[]
            {
                new WiFiDirectTestController(testContext, true),
            }
                );

            remoteCommandServer.Run(listenPort);
        }
Exemple #2
0
        public void StartServer()
        {
            Logger.SetAdditionalLogger(DataPathServer.testLogger.LogTrace);
            RemoteCommandServer server = new RemoteCommandServer(new Type[]
            {
                typeof(DataPathServer)
            },
                                                                 new object[]
            {
                new DataPathServer()
            });

            server.Run();
        }