Added more disposed checks.
This commit is contained in:
@@ -110,6 +110,10 @@ namespace NSspi.Contexts
|
|||||||
{
|
{
|
||||||
throw new InvalidOperationException( "The context is not fully formed." );
|
throw new InvalidOperationException( "The context is not fully formed." );
|
||||||
}
|
}
|
||||||
|
else if( this.Disposed )
|
||||||
|
{
|
||||||
|
throw new ObjectDisposedException( "Context" );
|
||||||
|
}
|
||||||
|
|
||||||
sizes = QueryBufferSizes();
|
sizes = QueryBufferSizes();
|
||||||
|
|
||||||
@@ -186,6 +190,10 @@ namespace NSspi.Contexts
|
|||||||
{
|
{
|
||||||
throw new InvalidOperationException( "The context is not fully formed." );
|
throw new InvalidOperationException( "The context is not fully formed." );
|
||||||
}
|
}
|
||||||
|
else if( this.Disposed )
|
||||||
|
{
|
||||||
|
throw new ObjectDisposedException( "Context" );
|
||||||
|
}
|
||||||
|
|
||||||
sizes = QueryBufferSizes();
|
sizes = QueryBufferSizes();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user