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
localProjectServiceLocalProjectServiceThe local project service.
proxyConfigProxyConfigThe proxy configuration options.
Properties
AdminDirectory
Gets the admin directory path from the proxy configuration.
public string AdminDirectory { get; set; }
Property Value
LocalProjectService
Gets the local project service instance.
public LocalProjectService LocalProjectService { get; }
Property Value
ProxyConfig
Gets the proxy configuration options.
public ProxyConfig ProxyConfig { get; }
Property Value
RelativeProjectPath
Gets the project path relative to the AdminDirectory.
public string RelativeProjectPath { get; }
Property Value
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
relativeFilePathstringThe 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
relativeFilePathstringThe 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
relativeFilePathstringThe relative file path from the admin directory root
SaveProject()
Saves the current project.
public void SaveProject()