Skip to content

Use Environment.TickCount64 instead of UtcNow in SignalR #34382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 28, 2021

Conversation

BrennanConroy
Copy link
Member

Part of #13628

Kestrel is proving to be more difficult than I thought it would, so not including it here.

@BrennanConroy BrennanConroy added the area-signalr Includes: SignalR clients and servers label Jul 15, 2021
@BrennanConroy
Copy link
Member Author

Bump

/// <summary>
/// Retrieves the current UTC system time.
/// </summary>
public DateTimeOffset UtcNow => DateTimeOffset.UtcNow;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean there were no tests for AuthenticationExpiration?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are, but they aren't using the clock abstraction.

@BrennanConroy BrennanConroy merged commit 8979311 into main Jul 28, 2021
@BrennanConroy BrennanConroy deleted the brecon/tick branch July 28, 2021 00:50
@ghost ghost added this to the 6.0-rc1 milestone Jul 28, 2021
@davidfowl
Copy link
Member

Did we file the issue for kestrel?

@BrennanConroy
Copy link
Member Author

Issue is still open for doing the same in Kestrel #13628

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-signalr Includes: SignalR clients and servers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants