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

Method Register

csharp/src/Fory/ThreadSafeFory.cs:50–54  ·  view source on GitHub ↗

Registers a user type by numeric type identifier for all current and future thread-local runtimes. Type to register. Numeric type identifier used on the wire. The same runtime instance.

(uint typeId)

Source from the content-addressed store, hash-verified

48 /// <param name="typeId">Numeric type identifier used on the wire.</param>
49 /// <returns>The same runtime instance.</returns>
50 public ThreadSafeFory Register<T>(uint typeId)
51 {
52 ApplyRegistration(fory => fory.Register<T>(typeId));
53 return this;
54 }
55
56 /// <summary>
57 /// Registers a user type by name for all current and future thread-local runtimes.

Callers

nothing calls this directly

Calls 2

SplitTypeNameMethod · 0.80
ValidateSplitTypeNameMethod · 0.80

Tested by

no test coverage detected