Skip to content

@EricThorsen /gist:1460532
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
routing a MIP record
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.