protected override void OnPackageReceived(PackageReceivedEventArgs e)
{
try
{
if (e.Exception != null)
{
OnError(e.Exception);
return;
}
var command = ClientModel.Api.GetCommand(e.Unpacked.Package.Id);
var args = new ClientCommandArgs(null, e.Unpacked);
requestQueue.Add(ClientId, command, args);
}
catch (Exception exc)
{
OnError(exc);
}
}