Table of Contents

Class ProxyProjectService

Namespace
Hi.MachiningProcs
Assembly
HiNc.dll

Delegate (User-based) Project Service. Apply relative file path from AdminDirectory.

public class ProxyProjectService : IProjectService, IMachiningProjectGetter
Inheritance
ProxyProjectService
Implements
Inherited Members
Extension Methods

Constructors

ProxyProjectService(LocalProjectService, IOptions<ProxyConfig>)

Initializes a new instance of the ProxyProjectService class.

public ProxyProjectService(LocalProjectService localProjectService, IOptions<ProxyConfig> proxyConfigOptions)

Parameters

localProjectService LocalProjectService

The local project service.

proxyConfigOptions IOptions<ProxyConfig>

The proxy configuration options.

Properties

AdminDirectory

Gets the admin directory path from the proxy configuration.

public string AdminDirectory { get; }

Property Value

string

LocalProjectService

Gets the local project service instance.

public LocalProjectService LocalProjectService { get; }

Property Value

LocalProjectService

MachiningProject

Gets or sets the machining project instance.

public MachiningProject MachiningProject { get; set; }

Property Value

MachiningProject

MachiningProjectPath

Gets or sets the path to the machining project file.

public string MachiningProjectPath { get; set; }

Property Value

string

ProjectPathRelativeToAdmin

Gets the project path relative to the admin directory.

public string ProjectPathRelativeToAdmin { get; }

Property Value

string

ProxyConfigOptions

Gets the proxy configuration options.

public IOptions<ProxyConfig> ProxyConfigOptions { get; }

Property Value

IOptions<ProxyConfig>

Methods

CloseProject()

Closes the current project.

public Task CloseProject()

Returns

Task

A task representing the asynchronous operation

GetMachiningProject()

Gets the MachiningProject instance.

public MachiningProject GetMachiningProject()

Returns

MachiningProject

The MachiningProject instance.

LoadProject(string)

Loads a project by file path relative to the admin directory.

public Task LoadProject(string relativeFilePath)

Parameters

relativeFilePath string

The relative file path from the admin directory root

Returns

Task

A task representing the asynchronous operation

NewProject(string)

Creates a new project by file path relative to the admin directory.

public void NewProject(string relativeFilePath)

Parameters

relativeFilePath string

The relative file path from the admin directory

ReloadProject()

Reloads the current project.

public Task ReloadProject()

Returns

Task

A task representing the asynchronous operation

SaveAsProject(string)

Saves the current project to a specified relative file path.

public Task SaveAsProject(string relativeFilePath)

Parameters

relativeFilePath string

The relative file path from the admin directory root

Returns

Task

SaveProject()

Saves the current project.

public Task SaveProject()

Returns

Task

A task representing the asynchronous operation.