Skip to content

Service cannot stop #8

Description

@enjoywithme

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions