Table of Contents

Class LocalProjectService

Namespace
Hi.MachiningProcs
Assembly
HiNc.dll

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

public class LocalProjectService : IProjectService, IMachiningProjectGetter, IPathedMachiningProjectHost, IMachiningProjectHost
Inheritance
LocalProjectService
Implements
Inherited Members
Extension Methods

Constructors

LocalProjectService()

Ctor.

public LocalProjectService()

LocalProjectService(AppService, ILogger<LocalProjectService>)

public LocalProjectService(AppService userService, ILogger<LocalProjectService> logger)

Parameters

userService AppService
logger ILogger<LocalProjectService>

Properties

Logger

public ILogger<LocalProjectService> Logger { get; }

Property Value

ILogger<LocalProjectService>

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

UserService

public AppService UserService { get; }

Property Value

AppService

Methods

CloseProject()

Closes the current project.

public Task CloseProject()

Returns

Task

A task representing the asynchronous operation

GetMachiningProject()

public MachiningProject GetMachiningProject()

Returns

MachiningProject

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 LocalProjectService.MachiningProjectChangedDelegate MachiningProjectChanged

Event Type

LocalProjectService.MachiningProjectChangedDelegate