MCPcopy Create free account
hub / github.com/apache/fory / Dispose

Method Dispose

csharp/src/Fory/ThreadSafeFory.cs:175–188  ·  view source on GitHub ↗

Disposes thread-local runtimes and prevents further API use.

()

Source from the content-addressed store, hash-verified

173 /// Disposes thread-local runtimes and prevents further API use.
174 /// </summary>
175 public void Dispose()
176 {
177 lock (_registrationLock)
178 {
179 if (_disposed)
180 {
181 return;
182 }
183
184 _threadLocalFory.Dispose();
185 _registrations.Clear();
186 _disposed = true;
187 }
188 }
189
190 private Fory Current
191 {

Callers 1

Calls 1

ClearMethod · 0.45

Tested by 1