using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; namespace Sample.AzureServiceBus.InMemory { public class Startup { public void ConfigureServices(IServiceCollection services) { services.AddCap(x => { x.UseInMemoryStorage(); x.UseAzureServiceBus("Endpoint=sb://testcap.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey="); x.UseDashboard(); }); services.AddMvc(); } public void Configure(IApplicationBuilder app) { app.UseMvc(); } } }