Skip to content

IGL.Service

chilberto edited this page Jun 28, 2018 · 4 revisions

The service handles messages posted to the IGL backgone and is intended to be hosted on a different server than the machine where the client is running.  The service is a .Net library that provides a pattern for hosting a service that receives messages from clients.

GamePacketReceiver

The GamePacketReceiver is an abstract service used to receive messages posted to the service bus. This supports both queues with sessions and without.

Extending GamePacketReceiver

The GamePacketReceiver should be extended and a simple example can be viewed in the unit tests.
internal class TestGamePacketReceiver : GamePacketReceiver
{
    public TestGamePacketReceiver(IConfiguration configuration, ServiceBusMessagingFactory factory) : base(
        configuration, factory)
    {
    }

    protected override bool HandleGamePacket(GamePacket packet)
    {
        return true;
    }
}

Clone this wiki locally