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