콘텐츠로 이동

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();