protected virtual void TrackResult() { if (!IsSuccess) { #if DEBUGGER_BREAK Debugger.Break(); #endif //var analyticsService = App.Resolve<IAnalyticsService>(); var param = new Dictionary <string, string>(); param[nameof(CallerName)] = CallerName; param[nameof(CallerFile)] = CallerFile; param[nameof(CallerLineNumber)] = CallerLineNumber.ToString(); if (!string.IsNullOrEmpty(ErrorId)) { param[nameof(ErrorId)] = ErrorId; } if (!string.IsNullOrEmpty(Message)) { param[nameof(Message)] = Message; } if (Exception != null) { param["ExceptionType"] = Exception.GetType().Name; param["ExceptionMessage"] = Exception.Message; } param[nameof(OperationTime)] = OperationTime.TotalMilliseconds.ToString(); //analyticsService.Track($"{CallerName}_AsyncOperation_Failure", param); } }
public override string ToString() { return ($"{nameof(LogTime)}={LogTime.ToString()}, {nameof(Tag)}={Tag ?? "None"}, Member={CallerMemberName}, File={CallerFilePath}({CallerLineNumber.ToString()})"); }