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

Method ApplyRegistration

csharp/src/Fory/ThreadSafeFory.cs:218–229  ·  view source on GitHub ↗
(Action<Fory> registration)

Source from the content-addressed store, hash-verified

216 }
217
218 private void ApplyRegistration(Action<Fory> registration)
219 {
220 lock (_registrationLock)
221 {
222 ThrowIfDisposed();
223 _registrations.Add(registration);
224 foreach (Fory fory in _threadLocalFory.Values)
225 {
226 registration(fory);
227 }
228 }
229 }
230
231 private void ThrowIfDisposed()
232 {

Callers

nothing calls this directly

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected