Skip to content

FromServicesAttribute

Namespace NetWiv · Assembly NetWiv.Core

public sealed class FromServicesAttribute : Attribute

Binds a command parameter from the invocation’s service scope instead of the guest arguments. Use FromKeyedServicesAttribute for keyed services.

Service parameters are never read from JSON and are omitted from generated frontend bindings. A nullable parameter resolves to null when the service is not registered.

public FromServicesAttribute();