SDownload.Framework.InfoReportProxy.Report C# (CSharp) Method

Report() public method

Report a string to the remote proxy
public Report ( String info, bool close = false ) : void
info String The information to send
close bool Whether to close the connection afterwards or not
return void
        public virtual void Report(String info, bool close = false)
        {
            if (Remote == null || !_canSend) return;

            try
            {
                Remote(info);
                if (close)
                    Close();
            }
            catch (Exception e)
            {
                _canSend = false;
                CrashHandler.Throw(e.Message, e);
            }
        }