File: Program.cs | Web Access |
Project: src\playground\TestShop\BasketService\BasketService.csproj (BasketService) |
using BasketService.Repositories; var builder = WebApplication.CreateBuilder(args); builder.AddServiceDefaults(); builder.Services.AddGrpc(); builder.AddRedisClient("basketcache"); builder.Services.AddTransient<IBasketRepository, RedisBasketRepository>(); builder.AddRabbitMQClient("messaging"); var app = builder.Build(); app.MapGrpcService<BasketService.BasketService>(); app.MapDefaultEndpoints(); app.Run(); |