Class MachiningServiceDependency
- Namespace
- Hi.NcParsers.Dependencys.SystemWired
- Assembly
- HiMech.dll
Exposes the full IMachiningService surface to NC pipeline components — currently provided for client-authored syntaxes / semantics that need broad host access (machining equipment, session, tool house, time mapping, …). The built-in CSV pipeline does not consume this dependency; it uses the narrower StepPropertyAccessDictionaryDependency instead.
public class MachiningServiceDependency : INcDependency, IMakeXmlSource
- Inheritance
-
MachiningServiceDependency
- Implements
- Inherited Members
- Extension Methods
Constructors
MachiningServiceDependency()
Initializes a new instance with no ServiceProvider; the host wires one before queries.
public MachiningServiceDependency()
MachiningServiceDependency(Func<IMachiningService>)
Initializes a new instance with the given ServiceProvider.
public MachiningServiceDependency(Func<IMachiningService> provider)
Parameters
providerFunc<IMachiningService>Delegate that resolves the live service at lookup time.
Properties
Service
The live machining service, or null when ServiceProvider is unset or returns null.
public IMachiningService Service { get; }
Property Value
ServiceProvider
Runtime provider for the machining service. Null provider or null return means the host is not wired; consumers must null-check.
public Func<IMachiningService> ServiceProvider { get; set; }
Property Value
XName
XML element name used to register this dependency with XFactory.
public static string XName { get; }
Property Value
Methods
MakeXmlSource(string, string, bool)
Runtime-only dependency — the provider is wired per host and not meaningful to persist; serialization writes only the empty element so the dependency survives an XML round-trip.
public XElement MakeXmlSource(string baseDirectory, string relFile, bool exhibitionOnly)
Parameters
Returns
Reg(XFactory)
Registers this type's deserializer with the given XFactory
(or Default when factory is
null). Idempotent.
public static void Reg(XFactory factory = null)
Parameters
factoryXFactory