@@ -20,7 +20,7 @@ namespace Sample.RabbitMQ.MongoDB | |||||
services.AddCap(x => | services.AddCap(x => | ||||
{ | { | ||||
x.UseMongoDB(Configuration.GetConnectionString("MongoDB")); | x.UseMongoDB(Configuration.GetConnectionString("MongoDB")); | ||||
x.UseRabbitMQ("192.168.2.120"); | |||||
x.UseRabbitMQ(""); | |||||
x.UseDashboard(); | x.UseDashboard(); | ||||
}); | }); | ||||
services.AddControllers(); | services.AddControllers(); | ||||
@@ -26,7 +26,7 @@ namespace Sample.RabbitMQ.MySql | |||||
} | } | ||||
public class AppDbContext : DbContext | public class AppDbContext : DbContext | ||||
{ | { | ||||
public const string ConnectionString = "Server=localhost;Database=testcap;UserId=root;Password=123123;"; | |||||
public const string ConnectionString = ""; | |||||
public DbSet<Person> Persons { get; set; } | public DbSet<Person> Persons { get; set; } | ||||
@@ -28,7 +28,7 @@ namespace Sample.RabbitMQ.SqlServer | |||||
public class AppDbContext : DbContext | public class AppDbContext : DbContext | ||||
{ | { | ||||
public const string ConnectionString = "Server=192.168.2.120;Database=captest;User Id=sa;Password=P@ssw0rd;"; | |||||
public const string ConnectionString = ""; | |||||
public DbSet<Person> Persons { get; set; } | public DbSet<Person> Persons { get; set; } | ||||
@@ -15,7 +15,7 @@ namespace Sample.RabbitMQ.SqlServer | |||||
services.AddCap(x => | services.AddCap(x => | ||||
{ | { | ||||
x.UseEntityFramework<AppDbContext>(); | x.UseEntityFramework<AppDbContext>(); | ||||
x.UseRabbitMQ("192.168.2.120"); | |||||
x.UseRabbitMQ(""); | |||||
x.UseDashboard(); | x.UseDashboard(); | ||||
x.FailedRetryCount = 5; | x.FailedRetryCount = 5; | ||||
x.FailedThresholdCallback = failed => | x.FailedThresholdCallback = failed => | ||||