public void Record(RaygunBreadcrumb crumb) { if (RaygunSettings.Settings.BreadcrumbsLocationRecordingEnabled) { try { for (int i = 1; i <= 3; i++) { PopulateLocation(crumb, i); if (crumb.ClassName == null || !crumb.ClassName.StartsWith("Mindscape.Raygun4Net", StringComparison.OrdinalIgnoreCase)) { break; } } } catch (Exception) { if (RaygunSettings.Settings.ThrowOnError) { throw; } } } if (ShouldRecord(crumb)) { _storage.Store(crumb); } }
public void Store(RaygunBreadcrumb breadcrumb) { _internalStorage.Store(breadcrumb); }