- using Microsoft.AspNetCore.Builder;
- using Microsoft.Extensions.DependencyInjection;
-
- namespace Sample.Kafka.PostgreSql
- {
- public class Startup
- {
- public void ConfigureServices(IServiceCollection services)
- {
- services.AddCap(x =>
- {
- x.UsePostgreSql("");
- x.UseKafka("");
- x.UseDashboard();
- });
-
- services.AddControllers();
- }
-
- public void Configure(IApplicationBuilder app)
- {
- app.UseRouting();
- app.UseEndpoints(endpoints =>
- {
- endpoints.MapControllers();
- });
- }
- }
- }
|