Table of Contents

Class Functions

Namespace
DuetControlServer.Codes.Meta
Assembly
DuetControlServer.dll

Service to provide SBC-dependent meta G-code function implementations

public class Functions : IHostedService
Inheritance
Functions
Implements
Inherited Members

Constructors

Service to provide SBC-dependent meta G-code function implementations

public Functions(Expressions expressions, FilePathResolver filePathResolver, Filter filter, LinkInterface linkInterface)

Parameters

expressions Expressions
filePathResolver FilePathResolver
filter Filter
linkInterface LinkInterface

Methods

Exists(CodeChannel, string, object?[])

Implementation for exists() meta G-code call

public Task<object?> Exists(CodeChannel channel, string functionName, object?[] arguments)

Parameters

channel CodeChannel

Code channel

functionName string

Function name

arguments object[]

Function arguments

Returns

Task<object>

Whether the file exists

FileExists(CodeChannel, string, object?[])

Implementation for fileexists() meta G-code call

public Task<object?> FileExists(CodeChannel channel, string functionName, object?[] arguments)

Parameters

channel CodeChannel

Code channel

functionName string

Function name

arguments object[]

Function arguments

Returns

Task<object>

Whether the file exists

FileRead(CodeChannel, string, object?[])

Implementation for fileread() meta G-code call

public Task<object?> FileRead(CodeChannel channel, string functionName, object?[] arguments)

Parameters

channel CodeChannel
functionName string
arguments object[]

Returns

Task<object>

StartAsync(CancellationToken)

Start the hosted service and register custom functions

public Task StartAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task

StopAsync(CancellationToken)

Stop the hosted service

public Task StopAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task