You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 regels
725 B

  1. using Amazon;
  2. using Microsoft.AspNetCore.Builder;
  3. using Microsoft.Extensions.DependencyInjection;
  4. namespace Sample.AmazonSQS.InMemory
  5. {
  6. public class Startup
  7. {
  8. public void ConfigureServices(IServiceCollection services)
  9. {
  10. services.AddCap(x =>
  11. {
  12. x.UseInMemoryStorage();
  13. x.UseAmazonSQS(RegionEndpoint.CNNorthWest1);
  14. x.UseDashboard();
  15. });
  16. services.AddControllers();
  17. }
  18. public void Configure(IApplicationBuilder app)
  19. {
  20. app.UseRouting();
  21. app.UseEndpoints(endpoints =>
  22. {
  23. endpoints.MapControllers();
  24. });
  25. }
  26. }
  27. }