소스 검색

modify DefaultSucceedMessageExpirationAfter to 24 hours.

master
Savorboard 7 년 전
부모
커밋
f7a1dcad0b
3개의 변경된 파일5개의 추가작업 그리고 10개의 파일을 삭제
  1. +2
    -2
      samples/Sample.RabbitMQ.SqlServer/AppDbContext.cs
  2. +1
    -6
      samples/Sample.RabbitMQ.SqlServer/Startup.cs
  3. +2
    -2
      src/DotNetCore.CAP/CAP.Options.cs

+ 2
- 2
samples/Sample.RabbitMQ.SqlServer/AppDbContext.cs 파일 보기

@@ -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");
}
}
}

+ 1
- 6
samples/Sample.RabbitMQ.SqlServer/Startup.cs 파일 보기

@@ -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();
});



+ 2
- 2
src/DotNetCore.CAP/CAP.Options.cs 파일 보기

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



불러오는 중...
취소
저장