Commit f7a1dcad authored by Savorboard's avatar Savorboard

modify DefaultSucceedMessageExpirationAfter to 24 hours.

parent 79a47502
......@@ -10,8 +10,8 @@ namespace Sample.RabbitMQ.SqlServer
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseSqlServer("Server=192.168.2.206;Initial Catalog=TestCap;User Id=cmswuliu;Password=h7xY81agBn*Veiu3;MultipleActiveResultSets=True");
//optionsBuilder.UseSqlServer("Server=DESKTOP-M9R8T31;Initial Catalog=Sample.Kafka.SqlServer;User Id=sa;Password=P@ssw0rd;MultipleActiveResultSets=True");
//optionsBuilder.UseSqlServer("Server=192.168.2.206;Initial Catalog=TestCap;User Id=cmswuliu;Password=h7xY81agBn*Veiu3;MultipleActiveResultSets=True");
optionsBuilder.UseSqlServer("Server=DESKTOP-M9R8T31;Initial Catalog=Sample.Kafka.SqlServer;User Id=sa;Password=P@ssw0rd;MultipleActiveResultSets=True");
}
}
}
......@@ -19,12 +19,7 @@ namespace Sample.RabbitMQ.SqlServer
services.AddCap(x =>
{
x.UseEntityFramework<AppDbContext>();
x.UseRabbitMQ(xx =>
{
xx.HostName = "192.168.2.206";
xx.UserName = "admin";
xx.Password = "123123";
});
x.UseRabbitMQ("localhost");
x.UseDashboard();
});
......
......@@ -23,7 +23,7 @@ namespace DotNetCore.CAP
/// <summary>
/// Default succeeded message expriation timespan, in seconds.
/// </summary>
public const int DefaultSucceedMessageExpirationAfter = 3600;
public const int DefaultSucceedMessageExpirationAfter = 24 * 3600;
/// <summary>
/// Failed message retry waiting interval.
......@@ -53,7 +53,7 @@ namespace DotNetCore.CAP
/// <summary>
/// Sent or received succeed message after timespan of due, then the message will be deleted at due time.
/// Dafault is 3600 seconds.
/// Dafault is 24*3600 seconds.
/// </summary>
public int SucceedMessageExpiredAfter { get; set; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment