-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[API Implementation]: Use TimeSpan everywhere we use an int for seconds, milliseconds, and timeouts (Group 1/3) #64860
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
Conversation
…dPipeClientStram.ConnectAsync`
…eam.ConnectAsync`
|
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
|
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
|
@deeprobin you have to rephrase the PR's description; it will close the issue you don't want to close. |
Thanks. I updated it |
|
Tagging subscribers to this area: @dotnet/area-meta Issue DetailsProposal implementation of #14336 (Group 1 of 3) - This will NOT close the issue Proposalnamespace System {
public static class GC {
public static GCNotificationStatus WaitForFullGCApproach(TimeSpan timeout);
public static GCNotificationStatus WaitForFullGCComplete(TimeSpan timeout);
}
}
namespace System.ComponentModel.DataAnnotations {
public class RegularExpressionAttribute {
public TimeSpan MatchTimeout { get; }
}
}
namespace System.Diagnostics {
public class Process {
public bool WaitForExit(TimeSpan timeout);
public bool WaitForInputIdle(TimeSpan timeout);
}
}
namespace System.IO {
public class FileSystemWatcher {
public WaitForChangedResult WaitForChanged(WatcherChangeTypes changeType, TimeSpan timeout);
}
public sealed class NamedPipeClientStream : PipeStream {
public void Connect(TimeSpan timeout);
public Task ConnectAsync(TimeSpan timeout, CancellationToken cancellationToken);
}
}
namespace System.Net.NetworkInformation {
public class Ping {
public PingReply Send(IPAddress address, TimeSpan timeout, byte[]? buffer, PingOptions? options);
public PingReply Send(string hostNameOrAddress, TimeSpan timeout, byte[]? buffer, PingOptions? options);
public Task<PingReply> SendPingAsync(IPAddress address, TimeSpan timeout, byte[]? buffer, PingOptions? options, CancellationToken cancellationToken);
public Task<PingReply> SendPingAsync(string hostNameOrAddress, TimeSpan timeout, byte[]? buffer, PingOptions? options, CancellationToken cancellationToken);
}
}
namespace System.Net.Sockets {
public class NetworkStream : Stream {
public void Close(TimeSpan timeout);
}
public class Socket {
public bool Poll(TimeSpan timeout, SelectMode mode);
public static void Select(IList checkRead, IList checkWrite, IList checkError, TimeSpan timeout);
}
}
namespace System.ServiceProcess {
public class ServiceBase {
public void RequestAdditionalTime(TimeSpan time);
}
}
namespace System.Threading.Tasks {
public class Task {
public bool Wait(TimeSpan timeout, CancellationToken cancellationToken);
}
}
namespace System.Timers {
public class Timer {
public Timer(TimeSpan interval);
}
}Current state of implementation
/cc @reflectronic
|
src/libraries/System.Threading.Tasks/tests/Task/TaskContinueWithTests.cs
Show resolved
Hide resolved
src/libraries/System.ServiceProcess.ServiceController/src/System/ServiceProcess/ServiceBase.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Sockets/tests/FunctionalTests/Connect.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Sockets/tests/FunctionalTests/Connect.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Sockets/tests/FunctionalTests/ArgumentValidationTests.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Sockets/tests/FunctionalTests/ArgumentValidationTests.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.ServiceProcess.ServiceController/src/System/ServiceProcess/ServiceBase.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.ServiceProcess.ServiceController/src/System/ServiceProcess/ServiceBase.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.ServiceProcess.ServiceController/tests/ServiceBaseTests.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Threading.Tasks/tests/Task/TaskContinueWithTests.cs
Outdated
Show resolved
Hide resolved
|
Hopefully that was the last feedback? this is mostly just getting used to "repo style" ... |
danmoseley
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @deeprobin !
src/libraries/System.ServiceProcess.ServiceController/tests/ServiceBaseTests.cs
Outdated
Show resolved
Hide resolved
…rviceBaseTests.cs
|
We have a few CI Failures that are unrelated. |
src/libraries/System.Net.Sockets/src/System/Net/Sockets/NetworkStream.cs
Show resolved
Hide resolved
…ds, milliseconds, and timeouts (Group 1/3) (dotnet#64860)
dotnet#64860 added a TestWaitForExitValidation test that would fail when run on platforms that did not support RemoteExecutor. This change adds a `ConditionalTheory` to make sure that doesn't happen.
#64860 added a TestWaitForExitValidation test that would fail when run on platforms that did not support RemoteExecutor. This change adds a `ConditionalTheory` to make sure that doesn't happen.
Proposal implementation of #14336 (Group 1 of 3) - This will NOT close the issue
Proposal
Current state of implementation
/cc @reflectronic