39 references to SniContext
System.Data (39)
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (1)
2465
_stateObj.SniContext =
SniContext
.Snix_SendRows;
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
905
Debug.Assert(
SniContext
.Snix_Read==stateObj.SniContext, String.Format((IFormatProvider)null, "The SniContext should be Snix_Read but it actually is {0}", stateObj.SniContext));
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (9)
1236
Debug.Assert(
SniContext
.Snix_Login == Parser._physicalStateObj.SniContext, String.Format((IFormatProvider)null, "SniContext should be Snix_Login; actual Value: {0}", Parser._physicalStateObj.SniContext));
1237
_parser._physicalStateObj.SniContext =
SniContext
.Snix_EnableMars;
1249
_parser._physicalStateObj.SniContext =
SniContext
.Snix_AutoEnlist;
1253
_parser._physicalStateObj.SniContext=
SniContext
.Snix_Login;
1542
Debug.Assert(
SniContext
.Undefined== Parser._physicalStateObj.SniContext, String.Format((IFormatProvider)null, "SniContext should be Undefined; actual Value: {0}", Parser._physicalStateObj.SniContext));
1781
Debug.Assert(
SniContext
.Undefined== Parser._physicalStateObj.SniContext, String.Format((IFormatProvider)null, "SniContext should be Undefined; actual Value: {0}", Parser._physicalStateObj.SniContext));
1830
Debug.Assert(
SniContext
.Undefined == Parser._physicalStateObj.SniContext, String.Format((IFormatProvider)null, "SniContext should be Undefined; actual Value: {0}", Parser._physicalStateObj.SniContext));
1962
_parser._physicalStateObj.SniContext =
SniContext
.Snix_Connect;
1980
_parser._physicalStateObj.SniContext =
SniContext
.Snix_Login;
fx\src\data\System\Data\SqlClient\TdsParser.cs (22)
498
_physicalStateObj.SniContext =
SniContext
.Snix_PreLoginBeforeSuccessfullWrite; // SQL BU DT 376766
516
_physicalStateObj.SniContext =
SniContext
.Snix_PreLogin;
527
_physicalStateObj.SniContext=
SniContext
.Snix_Connect;
678
_physicalStateObj.SniContext =
SniContext
.Snix_Close;
1165
_physicalStateObj.SniContext =
SniContext
.Snix_Close;
1382
string sqlContextInfo = Res.GetString(Enum.GetName(typeof(
SniContext
), stateObj.SniContext));
1822
Debug.Assert((
SniContext
.Undefined != stateObj.SniContext) && // SniContext must not be Undefined
1823
((stateObj._attentionSent) || ((
SniContext
.Snix_Execute != stateObj.SniContext) && (
SniContext
.Snix_SendRows != stateObj.SniContext))), // SniContext should not be Execute or SendRows unless attention was sent (and, therefore, we are looking for an ACK)
7205
Debug.Assert(
SniContext
.Snix_Login==_physicalStateObj.SniContext, String.Format((IFormatProvider)null, "Unexpected SniContext. Expecting Snix_Login, actual value is '{0}'", _physicalStateObj.SniContext));
7206
_physicalStateObj.SniContext =
SniContext
.Snix_LoginSspi;
7211
_physicalStateObj.SniContext=
SniContext
.Snix_Login;
7548
SniContext
outerContext=_physicalStateObj.SniContext;
7549
_physicalStateObj.SniContext =
SniContext
.Snix_ProcessSspi;
7653
Debug.Assert(
SniContext
.Snix_Read==stateObj.SniContext, String.Format((IFormatProvider)null, "The SniContext should be Snix_Read but it actually is {0}", stateObj.SniContext));
7739
stateObj.SniContext =
SniContext
.Snix_Execute;
7846
stateObj.SniContext =
SniContext
.Snix_Read;
7981
stateObj.SniContext =
SniContext
.Snix_Execute;
7996
stateObj.SniContext =
SniContext
.Snix_Read;
8012
stateObj.SniContext =
SniContext
.Snix_Read;
8091
stateObj.SniContext =
SniContext
.Snix_Execute;
8650
stateObj.SniContext =
SniContext
.Snix_Read;
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (6)
178
private
SniContext
_sniContext=
SniContext
.Undefined;
287
SniContext=
SniContext
.Snix_GetMarsSession;
388
internal
SniContext
SniContext {
2246
SniContext =
SniContext
.Snix_Connect;
2292
SniContext =
SniContext
.Snix_Connect;