Table of Contents

Class ProgramMetadataExtensions

Namespace
Songhay.Extensions
Assembly
SonghayCore.dll

Extensions of ProgramMetadata.

public static class ProgramMetadataExtensions
Inheritance
ProgramMetadataExtensions
Inherited Members

Methods

EnsureProgramMetadata(ProgramMetadata?)

Ensures that DbmsSet and RestApiMetadataSet are not null or throws NullReferenceException

public static void EnsureProgramMetadata(this ProgramMetadata? meta)

Parameters

meta ProgramMetadata

The ProgramMetadata.

Exceptions

NullReferenceException

ToConventionalHeaders(ProgramMetadata?, string)

Converts ProgramMetadata to the conventional HttpRequestHeaders.

public static Dictionary<string, string> ToConventionalHeaders(this ProgramMetadata? meta, string restApiMetadataSetKey)

Parameters

meta ProgramMetadata

The ProgramMetadata.

restApiMetadataSetKey string

The key for RestApiMetadataSet.

Returns

Dictionary<string, string>

ToRestApiMetadata(ProgramMetadata?, string?)

Converts ProgramMetadata to the RestApiMetadata it contains, identified by the specified key.

public static RestApiMetadata ToRestApiMetadata(this ProgramMetadata? meta, string? restApiMetadataSetKey)

Parameters

meta ProgramMetadata

The ProgramMetadata.

restApiMetadataSetKey string

the key of RestApiMetadataSet

Returns

RestApiMetadata