public
Created

routing a MIP record

  • Download Gist
gistfile1.cs
C#
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
private void server_MIPRecordDequeued(MIPQueueRecord record)
{
try
{
if (record.OutBoundDocQueueID != -1)
_lastDocumentID = record.OutBoundDocQueueID;
 
//Profile list exists for private sweep or retran
if (record.ProfileList != null)
{
foreach(int profileID in record.ProfileList)
{
MIPClient client = _clientMappings.GetClientForProfile(profileID);
if(client != null && client.Profile.IsPrivate)
sendClientMessage(client, record);
}
}
else
{
ICollection clients = _clientMappings.GetClientsForTopic(record.TopicKey);
if (clients != null)
{
foreach (MIPClient client in clients)
{
//Always want to send pulse
//Do not want to send public transmission to private profile
//??if(record.DocTypeID == DocTypes.pulse || !client.Profile.IsPrivate)
sendClientMessage(client, record);
}
}
}
}
catch(Exception exc)
{
SystemLog.Publish(exc);
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.