26 references to CacheSetting
System.ServiceModel.Primitives (8)
System\ServiceModel\ClientBase.cs (8)
48
private static
CacheSetting
s_cacheSetting =
CacheSetting
.Default;
72
if (s_cacheSetting ==
CacheSetting
.AlwaysOn)
94
if (s_cacheSetting ==
CacheSetting
.AlwaysOn)
126
if (s_cacheSetting ==
CacheSetting
.AlwaysOn)
200
public static
CacheSetting
CacheSetting
226
if (s_cacheSetting ==
CacheSetting
.Default)
425
if (!_sharingFinalized && s_cacheSetting ==
CacheSetting
.Default)
System.ServiceModel.Primitives.Tests (18)
ServiceModel\ClientBaseTest.cs (18)
33
Assert.Equal(
CacheSetting
.Default, MyClientBase.CacheSetting);
44
MyClientBase.CacheSetting =
CacheSetting
.Default;
46
Assert.Throws<InvalidOperationException>(() => MyClientBase.CacheSetting =
CacheSetting
.AlwaysOn);
52
Assert.Equal(
CacheSetting
.Default, MyClientBase.CacheSetting);
65
MyClientBase.CacheSetting =
CacheSetting
.Default;
67
Assert.Throws<InvalidOperationException>(() => MyClientBase.CacheSetting =
CacheSetting
.AlwaysOn);
73
MyClientBase2.CacheSetting =
CacheSetting
.AlwaysOn;
94
MyClientBase2.CacheSetting =
CacheSetting
.AlwaysOn;
96
Assert.Throws<InvalidOperationException>(() => MyClientBase2.CacheSetting =
CacheSetting
.Default);
102
MyClientBase2.CacheSetting =
CacheSetting
.AlwaysOn;
130
MyClientBase2.CacheSetting =
CacheSetting
.AlwaysOn;
132
Assert.Throws<InvalidOperationException>(() => MyClientBase2.CacheSetting =
CacheSetting
.Default);
139
MyClientBase3.CacheSetting =
CacheSetting
.AlwaysOff;
150
MyClientBase3.CacheSetting =
CacheSetting
.AlwaysOff;
152
Assert.Throws<InvalidOperationException>(() => MyClientBase.CacheSetting =
CacheSetting
.AlwaysOn);
158
MyClientBase3.CacheSetting =
CacheSetting
.AlwaysOff;
171
MyClientBase3.CacheSetting =
CacheSetting
.AlwaysOff;
173
Assert.Throws<InvalidOperationException>(() => MyClientBase.CacheSetting =
CacheSetting
.AlwaysOn);