24 references to NullCheck
System.Data.Services.Client (24)
System\Data\Services\Client\DataServiceContext.cs (15)
5716
HttpWebRequest httpWebRequest = Util.
NullCheck
(pereq.Request, InternalError.InvalidEndGetRequestStreamRequest);
5718
Stream stream = Util.
NullCheck
(httpWebRequest.EndGetRequestStream(asyncResult), InternalError.InvalidEndGetRequestStreamStream);
5722
Util.
NullCheck
(contentStream, InternalError.InvalidEndGetRequestStreamContent);
5723
Util.
NullCheck
(contentStream.Stream, InternalError.InvalidEndGetRequestStreamContent);
5786
Util.
NullCheck
(contentStream, InternalError.InvalidEndReadStream);
5787
Util.
NullCheck
(contentStream.Stream, InternalError.InvalidEndReadStream);
5788
Stream stream = Util.
NullCheck
(pereq.RequestStream, InternalError.InvalidEndReadStream);
5834
HttpWebRequest httpWebRequest = Util.
NullCheck
(pereq.Request, InternalError.InvalidEndWriteRequest);
5867
Util.
NullCheck
(contentStream, InternalError.InvalidEndWriteStream);
5868
Util.
NullCheck
(contentStream.Stream, InternalError.InvalidEndWriteStream);
5869
Stream stream = Util.
NullCheck
(pereq.RequestStream, InternalError.InvalidEndWriteStream);
5912
HttpWebRequest httpWebRequest = Util.
NullCheck
(pereq.Request, InternalError.InvalidEndGetResponseRequest);
5930
pereq.HttpWebResponse = Util.
NullCheck
(response, InternalError.InvalidEndGetResponseResponse);
5999
Stream stream = Util.
NullCheck
(pereq.ResponseStream, InternalError.InvalidEndReadStream);
6005
Stream outputResponse = Util.
NullCheck
(this.httpWebResponseStream, InternalError.InvalidEndReadCopy);
System\Data\Services\Client\GetReadStreamResult.cs (1)
176
HttpWebRequest request = Util.
NullCheck
(state.request, InternalError.InvalidEndGetResponseRequest);
System\Data\Services\Client\QueryResult.cs (8)
231
this.SetHttpWebResponse(Util.
NullCheck
(response, InternalError.InvalidGetResponse));
550
HttpWebRequest httpWebRequest = Util.
NullCheck
(state.Request, InternalError.InvalidEndGetResponseRequest);
567
state.SetHttpWebResponse(Util.
NullCheck
(response, InternalError.InvalidEndGetResponseResponse));
581
state.responseStream = Util.
NullCheck
(state.GetAsyncResponseStreamCopy(), InternalError.InvalidAsyncResponseStreamCopy);
586
state.asyncStreamCopyBuffer = Util.
NullCheck
(state.GetAsyncResponseStreamCopyBuffer(), InternalError.InvalidAsyncResponseStreamCopyBuffer);
658
Stream stream = Util.
NullCheck
(state.asyncResponseStream, InternalError.InvalidEndReadStream);
659
Stream outputResponse = Util.
NullCheck
(state.responseStream, InternalError.InvalidEndReadCopy);
660
byte[] buffer = Util.
NullCheck
(state.asyncStreamCopyBuffer, InternalError.InvalidEndReadBuffer);