-
Notifications
You must be signed in to change notification settings - Fork 1
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.
The GamePacketReceiver is an abstract service used to receive messages posted to the service bus. This supports both queues with sessions and without. 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;
}
}