Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 public void Store(RaygunBreadcrumb breadcrumb)
 {
     _internalStorage.Store(breadcrumb);
 }