Table of Contents

Class RootProjectService

Namespace
Hi.Services
Assembly
HiNc.dll

Root(Local) project service. Apply absolute file path.

public class RootProjectService : IPathedMachiningProjectHost, IMachiningProjectHost
Inheritance
RootProjectService
Implements
Inherited Members
Extension Methods

Constructors

RootProjectService(ILogger<RootProjectService>)

public RootProjectService(ILogger<RootProjectService> logger)

Parameters

logger ILogger<RootProjectService>

Properties

Logger

public ILogger<RootProjectService> Logger { get; }

Property Value

ILogger<RootProjectService>

MachiningProject

public MachiningProject MachiningProject { get; set; }

Property Value

MachiningProject

MachiningProjectPath

public string MachiningProjectPath { get; set; }

Property Value

string

ProjectDirectory

public string ProjectDirectory { get; }

Property Value

string

Methods

CloseProject()

Closes the current project.

public Task CloseProject()

Returns

Task

A task representing the asynchronous operation

LoadProject(string)

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

public Task LoadProject(string projectPath)

Parameters

projectPath string

The absolute file path

Returns

Task

A task representing the asynchronous operation

NewProject(string)

Creates a new project by file path.

public void NewProject(string projectPath)

Parameters

projectPath string

The absolute file path

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 void SaveAsProject(string projectPath)

Parameters

projectPath string

The absolute file path

SaveProject()

Save project by ProjectPathRoute.

public void SaveProject()

Events

MachiningProjectChanged

public event RootProjectService.MachiningProjectChangedDelegate MachiningProjectChanged

Event Type

RootProjectService.MachiningProjectChangedDelegate