Table of Contents
API reference

Property Services

Namespace
DisCatSharp.ApplicationCommands.Attributes
Assembly
DisCatSharp.ApplicationCommands.dll

Services

Gets or sets the service provider. This property is injected by the framework during command registration and will be available when Provider() is called.

Throws InvalidOperationException if accessed before the framework has injected it.

public IServiceProvider Services { get; set; }

Property Value

IServiceProvider