Add an EventType enum and Type field to the poll service event args. This allows

the manager to tell what type of event it is. All events except for lsl http in
go to the "slow queue" which is run once per second as before.
This commit is contained in:
Melanie
2012-07-05 23:09:20 +02:00
parent bc5d554f54
commit 4854d77904
4 changed files with 39 additions and 16 deletions

View File

@@ -45,6 +45,13 @@ namespace OpenSim.Framework.Servers.HttpServer
public RequestMethod Request;
public UUID Id;
public int TimeOutms;
public EventType Type;
public enum EventType : int
{
Normal = 0,
LslHttp = 1
}
public PollServiceEventArgs(RequestMethod pRequest, HasEventsMethod pHasEvents, GetEventsMethod pGetEvents, NoEventsMethod pNoEvents, UUID pId, int pTimeOutms)
{
@@ -54,6 +61,7 @@ namespace OpenSim.Framework.Servers.HttpServer
NoEvents = pNoEvents;
Id = pId;
TimeOutms = pTimeOutms;
Type = EventType.Normal;
}
}
}