Skip to content

ProtocolManifest

Namespace: E2E.Engine.Protocol

public static class ProtocolManifest

The 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.

View source

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

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