Browse Source

Update samples

master
Savorboard 4 years ago
parent
commit
7489ae9d8e
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      samples/Sample.RabbitMQ.MySql/AppDbContext.cs
  2. +1
    -1
      samples/Sample.RabbitMQ.MySql/Startup.cs

+ 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=192.168.2.120;Database=captest;UserId=root;Password=123123;";
public const string ConnectionString = "Server=localhost;Database=testcap;UserId=root;Password=123123;";

public DbSet<Person> Persons { get; set; }



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

@@ -14,7 +14,7 @@ namespace Sample.RabbitMQ.MySql
services.AddCap(x =>
{
x.UseEntityFramework<AppDbContext>();
x.UseRabbitMQ("192.168.2.120");
x.UseRabbitMQ("localhost");
x.UseDashboard();
x.FailedRetryCount = 5;
x.FailedThresholdCallback = (type, msg) =>


Loading…
Cancel
Save