-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19742 from abpframework/CheckDynamicClaimsInterval
Checking dynamic claims at intervals rather than every time.
- Loading branch information
Showing
2 changed files
with
38 additions
and
9 deletions.
There are no files selected for viewing
10 changes: 9 additions & 1 deletion
10
framework/src/Volo.Abp.AspNetCore.SignalR/Volo/Abp/AspNetCore/SignalR/AbpSignalROptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
namespace Volo.Abp.AspNetCore.SignalR; | ||
using System; | ||
|
||
namespace Volo.Abp.AspNetCore.SignalR; | ||
|
||
public class AbpSignalROptions | ||
{ | ||
public HubConfigList Hubs { get; } | ||
|
||
/// <summary> | ||
/// Default: 5 seconds. | ||
/// </summary> | ||
public TimeSpan? CheckDynamicClaimsInterval { get; set; } | ||
|
||
public AbpSignalROptions() | ||
{ | ||
Hubs = new HubConfigList(); | ||
CheckDynamicClaimsInterval = TimeSpan.FromSeconds(5); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters