using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Opsoft.NetCore.O3App.Domain;
namespace Opsoft.NetCore.O3App.Infrastructure
{
///
/// Extensions on the .
///
public static class TraceIdServiceExtensions
{
///
/// Adds required services to support the Trace ID functionality.
///
///
public static IServiceCollection AddTraceId(this IServiceCollection serviceCollection)
{
serviceCollection.TryAddSingleton();
serviceCollection.TryAddTransient();
return serviceCollection;
}
}
}