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
LocalProjectServiceThe 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
LocalProjectService
Gets the local project service instance.
public LocalProjectService LocalProjectService { get; }
Property Value
MachiningProject
Gets or sets the machining project instance.
public MachiningProject MachiningProject { get; set; }
Property Value
MachiningProjectPath
Gets or sets the path to the machining project file.
public string MachiningProjectPath { get; set; }
Property Value
ProjectPathRelativeToAdmin
Gets the project path relative to the admin directory.
public string ProjectPathRelativeToAdmin { get; }
Property Value
ProxyConfigOptions
Gets the proxy configuration options.
public IOptions<ProxyConfig> ProxyConfigOptions { get; }
Property Value
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
stringThe 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
stringThe 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
stringThe relative file path from the admin directory root
Returns
SaveProject()
Saves the current project.
public Task SaveProject()
Returns
- Task
A task representing the asynchronous operation.