Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

routing a MIP record

View gist:1460532
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);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.