メインコンテンツまでスキップ

Class WitPackageBuilder

Builds WIT packages from the definitions generated for interfaces with WaaS.ComponentModel.Binding.ComponentInterfaceAttribute.

Assembly: WaaS.Core.dll​
View Source​
Declaration
public static class WitPackageBuilder

Methods​

Build(IEnumerable<Type>)​

Builds the WIT source of each package from the given types. Types without WaaS.ComponentModel.Binding.ComponentWitDefinitionAttribute are ignored.

View Source​
Declaration
public static IReadOnlyDictionary<string, string> Build(IEnumerable<Type> types)
Returns​

System.Collections.Generic.IReadOnlyDictionary<System.String,System.String>: package name (e.g. "my-namespace:my-package") -> WIT source of the package

Parameters​
TypeName
System.Collections.Generic.IEnumerable<System.Type>types

Build(IEnumerable<ComponentWitDefinitionAttribute>)​

View Source​
Declaration
public static IReadOnlyDictionary<string, string> Build(IEnumerable<ComponentWitDefinitionAttribute> definitions)
Returns​

System.Collections.Generic.IReadOnlyDictionary<System.String,System.String>

Parameters​
TypeName
System.Collections.Generic.IEnumerable<WaaS.ComponentModel.Binding.ComponentWitDefinitionAttribute>definitions

GetDirectoryName(string)​

Returns a directory name for the package that can be used in a file system.

View Source​
Declaration
public static string GetDirectoryName(string package)
Returns​

System.String

Parameters​
TypeName
System.Stringpackage