Beispiel #1
0
 /// <summary>
 /// Add an integration
 /// </summary>
 /// <param name="options">The SentryOptions to hold the processor.</param>
 /// <param name="integration">The integration.</param>
 public static void AddIntegration(this SentryOptions options, ISdkIntegration integration)
 => options.Integrations = options.Integrations != null
         ? options.Integrations.Concat(new[] { integration }).ToArray()
         : new[] { integration };
Beispiel #2
0
 /// <summary>
 /// Add an integration
 /// </summary>
 /// <param name="options">The SentryOptions to hold the processor.</param>
 /// <param name="integration">The integration.</param>
 public static void AddIntegration(this SentryOptions options, ISdkIntegration integration)
 => options.Integrations = options.Integrations.Add(integration);