using Elsa.Http;
using JetBrains.Annotations;
using Microsoft.Extensions.DependencyInjection;
// ReSharper disable once CheckNamespace
namespace Elsa.Extensions;
///
/// Contains extension methods for the interface.
///
[PublicAPI]
public static class ServiceCollectionExtensions
{
///
/// Adds a implementation to the service collection.
///
public static IServiceCollection AddHttpCorrelationIdSelector(this IServiceCollection services) where T : class, IHttpCorrelationIdSelector
{
services.AddScoped();
return services;
}
///
/// Adds a implementation to the service collection.
///
public static IServiceCollection AddHttpCorrelationIdSelector(this IServiceCollection services, Func factory)
{
services.AddScoped(factory);
return services;
}
}