using GroupService.WebApi.Application.GroupInvitation; using GroupService.WebApi.Application.GroupMember; using GroupService.WebApi.Application.GroupRequest; using GroupService.WebApi.Application.IntegrationServices; using IM.Commons; using IM.Protocols.Grpc.User; using Microsoft.Extensions.Options; namespace GroupService.WebApi { public class ModuleInit : IModuleInitializer { public void Initialize(IServiceCollection services) { services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddGrpcClient((sp, o) => { var options = sp.GetRequiredService>(); o.Address = new Uri(options.CurrentValue.IdentityServiceUrl); }); } } }