public async void TestCleanup()
        {
            await pipeServer.StopAsync();

            pipeServer = null;
            syncEvent  = null;
        }
Esempio n. 2
0
        private async Task CleanupServer()
        {
            inboundMesageQueue = null;

            await mockServer.StopAsync();

            mockServer = null;

            Console.WriteLine($"ComplexFlow server stopped successfully");
        }
Esempio n. 3
0
        private async Task InitServerAsync(string receiveURL)
        {
            inboundMesageQueue = new ConcurrentDictionary <int, AsyncReadEventArgs>();

            mockServer = new StreamingNamedPipeServerAsync(new Uri(receiveURL).AbsolutePath);
            mockServer.ReadCompleted += MockServer_ReadCompleted;

            await mockServer.StartAsync();

            Console.WriteLine($"ComplexFlow server started listening on {receiveURL}");
        }
 public async void TestInitialize()
 {
     syncEvent  = new ManualResetEventSlim(false);
     pipeServer = new StreamingNamedPipeServerAsync("TestPipeServer");
     await pipeServer.StartAsync();
 }