Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service cannot stop #8

Open
enjoywithme opened this issue Jun 5, 2021 · 0 comments
Open

Service cannot stop #8

enjoywithme opened this issue Jun 5, 2021 · 0 comments

Comments

@enjoywithme
Copy link

Followed the udp echo server example, code get stuck at service.stop():
var service = new Service();

        // Start the service
        Console.Write("Service starting...");
        service.Start();
        Console.WriteLine("Done!");

        // Create a new UDP echo server
        var server = new EchoServer(service, port, InternetProtocol.IPv4);

        // Start the server
        Console.Write("Server starting...");
        server.Start();
        Console.WriteLine("Done!");

// Stop the server
Console.Write("Server stopping...");
server.Stop();
Console.WriteLine("Done!");

        // Stop the service
        Console.Write("Service stopping...");
        service.Stop();
        Console.WriteLine("Done!");

Just start the server and service, no client connection established yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant