public static Initialize ( ITestSite testSite ) : void | ||
testSite | ITestSite | The adapter's ITestSite instance. |
Результат | void |
/// <summary> /// Initialize adapter. /// </summary> /// <param name="testSite">The test site instance associated with the current adapter.</param> public override void Initialize(ITestSite testSite) { base.Initialize(ReqConfigurableSite.GetReqConfigurableSite(testSite)); PccrtpBothRoleCapture.Initialize(testSite); this.pccrtpClientStack = new PccrtpClient(new Logger(testSite)); this.Site.DefaultProtocolDocShortName = "MS-PCCRTP"; SutOsVersion = (OSVersion)Enum.Parse( typeof(OSVersion), this.GetProperty("Environment.ContentServer.OSVersion"), true); }
/// <summary> /// Initialize adapter. /// </summary> /// <param name="testSite">The test site instance associated with the current adapter.</param> public override void Initialize(ITestSite testSite) { base.Initialize(ReqConfigurableSite.GetReqConfigurableSite(testSite)); PccrtpBothRoleCapture.Initialize(testSite); this.Site.DefaultProtocolDocShortName = "MS-PCCRTP"; this.sutOsVersion = (OSVersion)Enum.Parse( typeof(OSVersion), this.Site.Properties["Environment.DistributedSUT.OSVersion"].ToString(), true); this.isIpv4 = bool.Parse(Site.Properties["PCCRTP.Protocol.Address.isIPv4"]); this.listenPort = int.Parse(Site.Properties["Environment.ContentServer.HTTP.Port"]); if (this.isIpv4) { this.pccrtpServerStack = new PccrtpServer(this.listenPort, IPAddressType.IPv4, new Logger(testSite)); } else { this.pccrtpServerStack = new PccrtpServer(this.listenPort, IPAddressType.IPv6, new Logger(testSite)); } this.pccrtpServerStack.StartServer(); }