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
ProgramMetadataThe ProgramMetadata.
Exceptions
ToConventionalHeaders(ProgramMetadata?, string)
Converts ProgramMetadata to the conventional HttpRequestHeaders.
public static Dictionary<string, string> ToConventionalHeaders(this ProgramMetadata? meta, string restApiMetadataSetKey)
Parameters
meta
ProgramMetadataThe ProgramMetadata.
restApiMetadataSetKey
stringThe key for RestApiMetadataSet.
Returns
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
ProgramMetadataThe ProgramMetadata.
restApiMetadataSetKey
stringthe key of RestApiMetadataSet