Table of Contents

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

configuration IConfiguration

Configuration provider

Properties

Endpoints

Dictionary of registered third-party paths vs third-party HTTP endpoints

public Dictionary<string, HttpEndpoint> Endpoints { get; }

Property Value

Dictionary<string, HttpEndpoint>

ReplySeq

Sequence number for generic messages (analog to seqs.reply)

public int ReplySeq { get; set; }

Property Value

int

WebDirectory

Path to the web directory

public string? WebDirectory { get; set; }

Property Value

string

Events

OnWebDirectoryChanged

Event that is triggered whenever the web directory path changes

public event IModelProvider.WebDirectoryChanged? OnWebDirectoryChanged

Event Type

IModelProvider.WebDirectoryChanged