14 lines
352 B
C#
14 lines
352 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Microservice.Common
|
|
{
|
|
public static class ServiceClientExtensions
|
|
{
|
|
public static IServiceCollection AddServiceClient(this IServiceCollection services)
|
|
{
|
|
services.AddTransient<IServiceClient, ServiceClient>();
|
|
|
|
return services;
|
|
}
|
|
}
|
|
} |