Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CacheProvider()

static void System.ComponentModel.LicenseManager.CacheProvider ( Type type,
LicenseProvider provider )
inlinestaticprivate

Definition at line 158 of file LicenseManager.cs.

159 {
160 if (s_providers == null)
161 {
163 }
164 lock (s_providers)
165 {
166 s_providers[type] = provider;
167 }
168 if (provider != null)
169 {
170 if (s_providerInstances == null)
171 {
173 }
174 Type type2 = provider.GetType();
176 {
177 s_providerInstances[type2] = provider;
178 }
179 }
180 }
static volatile Hashtable s_providerInstances
static volatile Hashtable s_providers
static int CompareExchange(ref int location1, int value, int comparand)

References System.Threading.Interlocked.CompareExchange(), System.ComponentModel.LicenseManager.s_providerInstances, System.ComponentModel.LicenseManager.s_providers, and System.type.

Referenced by System.ComponentModel.LicenseManager.ValidateInternalRecursive().