5 references to CounterInstanceNameMaxLength
System.Data (5)
fx\src\data\System\Data\ProviderBase\DbConnectionPoolCounters.cs (5)
254
if (result.Length >
CounterInstanceNameMaxLength
) {
260
int firstPartLength = (
CounterInstanceNameMaxLength
- insertString.Length) / 2;
261
int lastPartLength =
CounterInstanceNameMaxLength
- firstPartLength - insertString.Length;
267
Debug.Assert(result.Length ==
CounterInstanceNameMaxLength
,
268
string.Format((IFormatProvider)null, "wrong calculation of the instance name: expected {0}, actual: {1}",
CounterInstanceNameMaxLength
, result.Length));