Class ModelProvider
Singleton providing model-related parameters
Implements
Inherited Members
Namespace: DuetWebServer.Singletons
Assembly: DuetWebServer.dll
Syntax
public class ModelProvider : IModelProvider
Constructors
ModelProvider(IConfiguration)
Constructor of this singleton
Declaration
public ModelProvider(IConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
IConfiguration | configuration | Configuration provider |
Properties
Endpoints
Dictionary of registered third-party paths vs third-party HTTP endpoints
Declaration
public Dictionary<string, HttpEndpoint> Endpoints { get; }
Property Value
Type | Description |
---|---|
Dictionary<string, HttpEndpoint> |
ReplySeq
Sequence number for generic messages (analog to seqs.reply)
Declaration
public int ReplySeq { get; set; }
Property Value
Type | Description |
---|---|
int |
WebDirectory
Path to the web directory
Declaration
public string? WebDirectory { get; set; }
Property Value
Type | Description |
---|---|
string |
Events
OnWebDirectoryChanged
Event that is triggered whenever the web directory path changes
Declaration
public event IModelProvider.WebDirectoryChanged? OnWebDirectoryChanged
Event Type
Type | Description |
---|---|
IModelProvider.WebDirectoryChanged |