/// <summary> /// 예외 정보를 전송합니다. /// </summary> /// <param name="exception">예외</param> /// <param name="properties">추가정보</param> /// <returns></returns> public Task TrackErrorAsync(Exception exception, AppCenterProperties properties = null) { TrackError(exception, properties); return(Task.CompletedTask); }
/// <summary> /// 이벤트 데이터를 전송합니다. /// </summary> /// <param name="name">이벤트 이름</param> /// <param name="properties">추가 정보</param> /// <returns></returns> public Task TrackEventAsync(string name, AppCenterProperties properties = null) { TrackEvent(name, properties); return(Task.CompletedTask); }
/// <summary> /// 예외 정보를 전송합니다. /// </summary> /// <param name="exception">예외</param> /// <param name="properties">추가 정보</param> public void TrackError(Exception exception, AppCenterProperties properties = null) { Error(AppCenterLog.LogTag, $"{exception.Message}{Environment.NewLine}{properties?.ToString()}", exception); Crashes.TrackError(exception, properties?.ToDictionary()); }
/// <summary> /// 이벤트 데이터를 전송합니다. /// </summary> /// <param name="name">이벤트 이름</param> /// <param name="properties">추가 정보</param> public void TrackEvent(string name, AppCenterProperties properties = null) { Info(AppCenterLog.LogTag, $"{name}{Environment.NewLine}{properties?.ToString()}", null, null, null); Analytics.TrackEvent(name, properties?.ToDictionary()); }