Class ComponentBuildService
Holds all the methods to build the IComponentInfo.
Inheritance
System.Object
ComponentBuildService
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Color_Chan.Discord.Commands.Services.Implementations.Builders
Assembly: Color-Chan.Discord.Commands.dll
Syntax
public class ComponentBuildService : IComponentBuildService
Constructors
| Improve this Doc View SourceComponentBuildService(ILogger<ComponentBuildService>, ISlashCommandRequirementBuildService)
Initializes a new instance of ComponentBuildService.
Declaration
public ComponentBuildService(ILogger<ComponentBuildService> logger, ISlashCommandRequirementBuildService requirementBuildService)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Logging.ILogger<ComponentBuildService> | logger | The Microsoft.Extensions.Logging.ILogger for ComponentBuildService. |
ISlashCommandRequirementBuildService | requirementBuildService | The ISlashCommandRequirementBuildService that will get and build the component requirements. |
Methods
| Improve this Doc View SourceBuildComponentInfos(Assembly)
Builds all the IComponentInfos of an assembly
.
Declaration
public IEnumerable<IComponentInfo> BuildComponentInfos(Assembly assembly)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.Assembly | assembly | The assembly where the components are located. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IComponentInfo> | All the IComponentInfos the provided |
Exceptions
Type | Condition |
---|---|
System.NullReferenceException | Thrown when a valid method did not have a ComponentAttribute. |