protected void TriggerOnProgress(OpenDMS.Networking.Protocols.Tcp.DirectionType direction, int packetSize, decimal sendPercentComplete, decimal receivePercentComplete) { if (OnProgress != null) { OnProgress(this, direction, packetSize, sendPercentComplete, receivePercentComplete); } }
protected void TriggerOnProgress(Tasks.Base task, OpenDMS.Networking.Protocols.Tcp.DirectionType direction, int packetSize, decimal sendPercentComplete, decimal receivePercentComplete) { try { if (OnProgress != null) { OnProgress(this, task, direction, packetSize, sendPercentComplete, receivePercentComplete); } } catch (System.Exception e) { Logger.Storage.Error("An exception occurred while calling the OnProgress event.", e); throw; } }