96 references to ThreadKinds
System (96)
net\System\Net\_Connection.cs (25)
591
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "Connection#" + ValidationHelper.HashString(this) + "::SubmitRequest");
841
GlobalLog.ThreadContract(
ThreadKinds
.Unknown,
945
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "Connection#" + ValidationHelper.HashString(this) + "::CompleteStartRequest");
1013
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "Connection#" + ValidationHelper.HashString(this) + "::CheckNextRequest");
1049
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "Connection#" + ValidationHelper.HashString(this) + "::CompleteStartConnection");
1144
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "Connection#" + ValidationHelper.HashString(this) + "::CompleteConnection");
1220
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "Connection#" + ValidationHelper.HashString(this) + "::InternalWriteStartNextRequest");
1312
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "Connection#" + ValidationHelper.HashString(this) + "::WriteStartNextRequest");
1370
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "Connection#" + ValidationHelper.HashString(this) + "::ReadStartNextRequest");
1671
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "Connection#" + ValidationHelper.HashString(this) + "::ParseStatusLine");
1871
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "Connection::ParseStatusLineStrict");
2791
GlobalLog.ThreadContract(
ThreadKinds
.Unknown,
ThreadKinds
.SafeSources |
ThreadKinds
.Timer, "Connection#" + ValidationHelper.HashString(this) + "::CloseOnIdle");
2811
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "Connection#" + ValidationHelper.HashString(this) + "::AbortOrDisassociate()");
2886
GlobalLog.ThreadContract(
ThreadKinds
.Unknown,
ThreadKinds
.SafeSources |
ThreadKinds
.Timer |
ThreadKinds
.Finalization, "Connection#" + ValidationHelper.HashString(this) + "::AbortSocket");
3276
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "Connection#" + ValidationHelper.HashString(this) + "::PollAndRead");
3297
GlobalLog.ThreadContract(
ThreadKinds
.Sync, "Connection#" + ValidationHelper.HashString(this) + "::SyncRead");
3867
GlobalLog.ThreadContract(
ThreadKinds
.Unknown,
ThreadKinds
.SafeSources |
ThreadKinds
.Finalization |
ThreadKinds
.Timer, "Connection#" + ValidationHelper.HashString(this) + "::CheckIdle");
net\System\Net\_ConnectionGroup.cs (3)
264
GlobalLog.ThreadContract(
ThreadKinds
.Unknown,
ThreadKinds
.SafeSources |
ThreadKinds
.Timer, "ConnectionGroup#" + ValidationHelper.HashString(this) + "::DisableKeepAliveOnConnections");
net\System\Net\_ConnectStream.cs (9)
609
GlobalLog.ThreadContract(
ThreadKinds
.Sync, "ConnectStream#" + ValidationHelper.HashString(this) + "::ResubmitWrite");
1727
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "ConnectStream#" + ValidationHelper.HashString(this) + "::BeginReadWithoutValidation");
1823
GlobalLog.ThreadContract(
ThreadKinds
.Sync, "ConnectStream#" + ValidationHelper.HashString(this) + "::InternalRead");
1862
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "ConnectStream::ReadCallback");
2416
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "ConnectStream#" + ValidationHelper.HashString(this) + "::Abort");
2421
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "ConnectStream#" + ValidationHelper.HashString(this) + "::Abort");
2504
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "ConnectStream#" + ValidationHelper.HashString(this) + "::Abort");
2819
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "ConnectStream#" + ValidationHelper.HashString(this) + "::DrainSocket");
3024
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "ConnectStream#" + ValidationHelper.HashString(this) + "::IOError");
net\System\Net\_LoggingObject.cs (13)
728
internal static
ThreadKinds
CurrentThreadKind
735
return
ThreadKinds
.Unknown;
829
internal static void SetThreadSource(
ThreadKinds
source)
865
internal static void ThreadContract(
ThreadKinds
kind, string errorMsg)
867
ThreadContract(kind,
ThreadKinds
.SafeSources, errorMsg);
872
internal static void ThreadContract(
ThreadKinds
kind,
ThreadKinds
allowedSources, string errorMsg)
874
if ((kind &
ThreadKinds
.SourceMask) !=
ThreadKinds
.Unknown || (allowedSources &
ThreadKinds
.SourceMask) != allowedSources)
879
ThreadKinds
threadKind = CurrentThreadKind;
880
Assert((threadKind & allowedSources) != 0, errorMsg, "Thread Contract Violation.|Expected source:({0}) Actual source:({1})", allowedSources , threadKind &
ThreadKinds
.SourceMask);
881
Assert((threadKind & kind) == kind, errorMsg, "Thread Contract Violation.|Expected kind:({0}) Actual kind:({1})", kind, threadKind & ~
ThreadKinds
.SourceMask);
net\System\Net\FtpWebRequest.cs (2)
1335
GlobalLog.ThreadContract(
ThreadKinds
.User |
ThreadKinds
.Sync, "FtpWebRequest#" + ValidationHelper.HashString(this) + "::GetWritingContext");
net\System\Net\HttpWebRequest.cs (35)
1232
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::ClearAuthenticatedConnectionResources()");
1731
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::ErrorStatusCodeNotify");
1776
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::ErrorStatusCodeNotify");
2418
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::CallContinueDelegateCallback");
3137
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::Abort()");
3283
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::FindServicePoint");
3322
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::InvokeGetRequestStreamCallback");
3360
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::SetRequestSubmitDone");
3453
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::SetRequestContinue");
3718
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::SetResponse");
3775
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::ProcessResponse");
3844
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::SetResponse");
4028
GlobalLog.ThreadContract(
ThreadKinds
.User |
ThreadKinds
.Sync, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::GetConnectingContext");
4051
GlobalLog.ThreadContract(
ThreadKinds
.User |
ThreadKinds
.Sync, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::GetWritingContext");
4076
GlobalLog.ThreadContract(
ThreadKinds
.User |
ThreadKinds
.Sync, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::GetReadingContext");
4121
GlobalLog.ThreadContract(
ThreadKinds
.User, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::BeginSubmitRequest");
4132
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::SubmitRequest");
4205
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::CheckCacheRetrieveBeforeSubmit");
4262
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::CheckCacheRetrieveOnResponse");
4340
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::CheckCacheUpdateOnResponse");
4364
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::EndSubmitRequest");
4422
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::EndWriteHeaders");
4462
GlobalLog.ThreadContract(
ThreadKinds
.Unknown,
ThreadKinds
.SafeSources |
ThreadKinds
.Timer, "HttpWebRequest#" + ValidationHelper.HashString(context) + "::ContinueTimeoutCallback");
4565
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::EndWriteHeaders_Part2");
4934
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::UpdateHeaders");
4985
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::UpdateHeaders");
5520
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::CheckResubmitForAuth");
5577
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::CheckResubmitForCache");
5637
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::CheckResubmit");
5975
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "HttpWebRequest#" + ValidationHelper.HashString(this) + "::ClearRequestForResubmit");
net\System\Net\ServicePoint.cs (6)
1011
GlobalLog.ThreadContract(
ThreadKinds
.Unknown,
ThreadKinds
.SafeSources |
ThreadKinds
.Timer, "ServicePoint#" + ValidationHelper.HashString(this) + "::DecrementConnection");
1182
GlobalLog.ThreadContract(
ThreadKinds
.Unknown,
ThreadKinds
.SafeSources |
ThreadKinds
.Timer, "ServicePoint#" + ValidationHelper.HashString(this) + "::ReleaseAllConnectionGroups");
net\System\Net\Sockets\NetworkStream.cs (3)
1069
GlobalLog.ThreadContract(
ThreadKinds
.Sync, "NetworkStream#" + ValidationHelper.HashString(this) + "::MultipleWrite");
1218
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "NetworkStream#" + ValidationHelper.HashString(this) + "::EndMultipleWrite");
1274
GlobalLog.ThreadContract(
ThreadKinds
.Unknown, "NetworkStream#" + ValidationHelper.HashString(this) + "::SetSocketTimeoutOption");