Browse Source

Update the sample to remove test string

undefined
Savorboard 4 years ago
parent
commit
ec22b181af
4 changed files with 4 additions and 4 deletions
  1. +1
    -1
      samples/Sample.RabbitMQ.MongoDB/Startup.cs
  2. +1
    -1
      samples/Sample.RabbitMQ.MySql/AppDbContext.cs
  3. +1
    -1
      samples/Sample.RabbitMQ.SqlServer/AppDbContext.cs
  4. +1
    -1
      samples/Sample.RabbitMQ.SqlServer/Startup.cs

+ 1
- 1
samples/Sample.RabbitMQ.MongoDB/Startup.cs View File

@@ -20,7 +20,7 @@ namespace Sample.RabbitMQ.MongoDB
services.AddCap(x =>
{
x.UseMongoDB(Configuration.GetConnectionString("MongoDB"));
x.UseRabbitMQ("192.168.2.120");
x.UseRabbitMQ("");
x.UseDashboard();
});
services.AddControllers();


+ 1
- 1
samples/Sample.RabbitMQ.MySql/AppDbContext.cs View File

@@ -26,7 +26,7 @@ namespace Sample.RabbitMQ.MySql
}
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; }



+ 1
- 1
samples/Sample.RabbitMQ.SqlServer/AppDbContext.cs View File

@@ -28,7 +28,7 @@ namespace Sample.RabbitMQ.SqlServer

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; }



+ 1
- 1
samples/Sample.RabbitMQ.SqlServer/Startup.cs View File

@@ -15,7 +15,7 @@ namespace Sample.RabbitMQ.SqlServer
services.AddCap(x =>
{
x.UseEntityFramework<AppDbContext>();
x.UseRabbitMQ("192.168.2.120");
x.UseRabbitMQ("");
x.UseDashboard();
x.FailedRetryCount = 5;
x.FailedThresholdCallback = failed =>


Loading…
Cancel
Save