Skip to content

Commit 9f512cf

Browse files
committed
address feedback
1 parent 1a64710 commit 9f512cf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/AAsyncCallContext.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ namespace Microsoft.Data.SqlClient
1111
// avoiding the use of closures and allowing caching/reuse of the instances for frequently used async
1212
// calls
1313
//
14-
// DO derive from this and seal and your class
14+
// DO derive from this and seal your class
1515
// DO add additional fields or properties needed for the async operation and then override Clear to zero them
1616
// DO override AfterClear and use the owner parameter to return the object to a cache location if you have one, this is the purpose of the method
1717
// CONSIDER creating your own Set method that calls the base Set rather than providing a parameterized ctor, it is friendlier to caching
18-
// DO NOT use this class after Dispose has been called. It will not throw ObjectDisposedException but it will be a cleared object
18+
// DO NOT use this class' state after Dispose has been called. It will not throw ObjectDisposedException but it will be a cleared object
1919

2020
internal abstract class AAsyncCallContext<TOwner, TTask> : IDisposable
2121
where TOwner : class
@@ -50,7 +50,7 @@ protected void ClearCore()
5050
}
5151

5252
/// <summary>
53-
/// overrride this method to cleanup instance data before ClearCore is called which will blank the base data
53+
/// override this method to cleanup instance data before ClearCore is called which will blank the base data
5454
/// </summary>
5555
protected virtual void Clear()
5656
{
@@ -61,7 +61,6 @@ protected virtual void Clear()
6161
/// </summary>
6262
protected virtual void AfterCleared(TOwner owner)
6363
{
64-
6564
}
6665

6766
public void Dispose()

0 commit comments

Comments
 (0)