Make ResetSendPing and ResetTimeout private methods (#8525)

This commit is contained in:
Mikael Mengistu 2019-03-14 22:05:07 -07:00 committed by David Fowler
parent cfe0cc38ec
commit 694dcae53e
2 changed files with 2 additions and 4 deletions

View File

@ -37,8 +37,6 @@ namespace Microsoft.AspNetCore.SignalR.Client
public System.Threading.Tasks.Task<object> InvokeCoreAsync(string methodName, System.Type returnType, object[] args, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public System.IDisposable On(string methodName, System.Type[] parameterTypes, System.Func<object[], object, System.Threading.Tasks.Task> handler, object state) { throw null; }
public void Remove(string methodName) { }
public void ResetSendPing() { }
public void ResetTimeout() { }
[System.Diagnostics.DebuggerStepThroughAttribute]
public System.Threading.Tasks.Task SendCoreAsync(string methodName, object[] args, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
[System.Diagnostics.DebuggerStepThroughAttribute]

View File

@ -1027,12 +1027,12 @@ namespace Microsoft.AspNetCore.SignalR.Client
}
}
public void ResetSendPing()
private void ResetSendPing()
{
Volatile.Write(ref _nextActivationSendPing, (DateTime.UtcNow + KeepAliveInterval).Ticks);
}
public void ResetTimeout()
private void ResetTimeout()
{
Volatile.Write(ref _nextActivationServerTimeout, (DateTime.UtcNow + ServerTimeout).Ticks);
}