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

◆ InitStore() [2/2]

void System.IO.IsolatedStorage.IsolatedStorage.InitStore ( IsolatedStorageScope scope,
Type? domainEvidenceType,
Type? assemblyEvidenceType )
inlineprotectedinherited

Definition at line 125 of file IsolatedStorage.cs.

126 {
127 VerifyScope(scope);
128 Scope = scope;
129 Helper.GetDefaultIdentityAndHash(out var identity, out var hash, SeparatorInternal);
130 if (Helper.IsApplication(scope))
131 {
132 _applicationIdentity = identity;
133 }
134 else
135 {
136 if (Helper.IsDomain(scope))
137 {
138 _domainIdentity = identity;
139 IFormatProvider formatProvider = null;
140 IFormatProvider provider = formatProvider;
141 Span<char> initialBuffer = stackalloc char[128];
142 DefaultInterpolatedStringHandler handler = new DefaultInterpolatedStringHandler(0, 3, formatProvider, initialBuffer);
143 handler.AppendFormatted(hash);
145 handler.AppendFormatted(hash);
146 hash = string.Create(provider, initialBuffer, ref handler);
147 }
148 _assemblyIdentity = identity;
149 }
150 IdentityHash = hash;
151 }
static void VerifyScope(IsolatedStorageScope scope)

References System.IO.IsolatedStorage.IsolatedStorage._applicationIdentity, System.IO.IsolatedStorage.IsolatedStorage._assemblyIdentity, System.IO.IsolatedStorage.IsolatedStorage._domainIdentity, System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(), System.IO.IsolatedStorage.Helper.GetDefaultIdentityAndHash(), System.IO.IsolatedStorage.IsolatedStorage.IdentityHash, System.IO.IsolatedStorage.Helper.IsApplication(), System.IO.IsolatedStorage.Helper.IsDomain(), System.IO.IsolatedStorage.IsolatedStorage.Scope, System.IO.IsolatedStorage.IsolatedStorage.SeparatorExternal, System.IO.IsolatedStorage.IsolatedStorage.SeparatorInternal, and System.IO.IsolatedStorage.IsolatedStorage.VerifyScope().