private _processMessages ( object nothing ) : void | ||
nothing | object | The state, which is nothing |
Результат | void |
private void _processMessages(object nothing)
{
_state = ProcessingState.Processing;
while (_messageQueue.Count > 0)
{
var message = _messageQueue.Dequeue();
try
{
_processMessage(message);
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
}
_state = ProcessingState.Idle;
}