ProtocolManifest
Namespace: E2E.Engine.Protocol
public static class ProtocolManifestThe manifest: DescribeEngine derives one from an engine, CheckManifest checks the shape of a declared one, and
ManifestMismatch compares the declared manifest with the one a server announces. Upstream’s engine/protocol/manifest.ts.
Inheritance: object
.NET-only holder name: C# has no free functions, and EngineManifest already holds the engine manifest’s.
Methods
Section titled “Methods”CheckManifest(EngineManifest)
Section titled “CheckManifest(EngineManifest)”public static EngineManifest CheckManifest(EngineManifest manifest)Checks a declared manifest’s shape at config load: an object whose methods are protocol methods, each once. The rest is checked by
DefineEngine(EngineSpec). Upstream’s checkManifest.
Parameters
| Name | Type | Description |
|---|---|---|
manifest |
EngineManifest |
Returns: EngineManifest
DescribeEngine(EngineHandle)
Section titled “DescribeEngine(EngineHandle)”public static EngineManifest DescribeEngine(EngineHandle engine)Describes an engine as the manifest serveEngine returns from initialize: its static members, the methods its declared
members answer, and the attempt hooks the server always answers. Upstream’s describeEngine.
Parameters
| Name | Type | Description |
|---|---|---|
engine |
EngineHandle |
Returns: EngineManifest
ManifestMismatch(EngineManifest, EngineManifest?)
Section titled “ManifestMismatch(EngineManifest, EngineManifest?)”public static string? ManifestMismatch(EngineManifest declared, EngineManifest? announced)Names the fields where the server’s manifest differs from the declared one, or null when they agree. Upstream’s manifestMismatch.
Parameters
| Name | Type | Description |
|---|---|---|
declared |
EngineManifest | |
announced |
EngineManifest |
Returns: string