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, ProxyConfig)

Initializes a new instance of the ProxyProjectService class.

public ProxyProjectService(LocalProjectService localProjectService, ProxyConfig proxyConfig)

Parameters

localProjectService LocalProjectService

The local project service.

proxyConfig ProxyConfig

The proxy configuration options.

Properties

AdminDirectory

Gets the admin directory path from the proxy configuration.

public string AdminDirectory { get; set; }

Property Value

string

LocalProjectService

Gets the local project service instance.

public LocalProjectService LocalProjectService { get; }

Property Value

LocalProjectService

ProxyConfig

Gets the proxy configuration options.

public ProxyConfig ProxyConfig { get; }

Property Value

ProxyConfig

RelativeProjectPath

Gets the project path relative to the AdminDirectory.

public string RelativeProjectPath { get; }

Property Value

string

Methods

CloseProject()

Closes the current project.

public void CloseProject()

GetLocalProjectService()

Get Local Project Service as base-service.

public LocalProjectService GetLocalProjectService()

Returns

LocalProjectService

Local Project Service

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 void LoadProject(string relativeFilePath)

Parameters

relativeFilePath string

The relative file path from the admin directory root

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 void ReloadProject()

SaveAsProject(string)

Saves the current project to a specified relative file path.

public void SaveAsProject(string relativeFilePath)

Parameters

relativeFilePath string

The relative file path from the admin directory root

SaveProject()

Saves the current project.

public void SaveProject()