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