public Totally_Integrated_Get_Feature(ITestOutputHelper helper) : base(helper) { NamedPipeServerFeature serverFeature = new NamedPipeServerFeature(); if (!serverFeature.FeatureEnabled) { StepExecution.Current.IgnoreScenario("Disabled named pipe communication"); } }
public Client_To_Server_Feature(ITestOutputHelper output) : base(output) { NamedPipeServerFeature serverFeature = new NamedPipeServerFeature(); if (!serverFeature.FeatureEnabled) { StepExecution.Current.IgnoreScenario("Disabled named pipe communication"); } }
public NamedPipeServerProtocolSplitMessagesTest(ITestOutputHelper output) { NamedPipeServerFeature serverFeature = new NamedPipeServerFeature(); if (!serverFeature.FeatureEnabled) { throw new SkipTestException("Disabled named pipe communication"); } streamFactory = PageStreamFactory.CreateDefault(16); string serverName = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? Guid.NewGuid().ToByteString() : $"/tmp/{Guid.NewGuid().ToByteString()}"; Task <ICommunicationProtocol> creationTask = NamedPipeCommunicationProtocol.Connect(serverName, streamFactory, new LogTracer(output)); simulator = NamedPipeCommunicationProtocolSimulator.Connect(serverName, streamFactory, new LogTracer(output)); creationTask.Wait(); protocol = creationTask.Result; protocol.MessageReceived += OnMessageReceived; protocol.CommunicationError += OnCommunicationError; protocol.Start(); }