Class ModelLoader
Implementation of ILoadsModel which loads a model from a JSON source file.
Inheritance
System.Object
ModelLoader
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ZptSharp.Cli
Assembly: ZptSharp.Cli.dll
Syntax
public class ModelLoader : ILoadsModel
Methods
| Improve this Doc View SourceLoadModelAsync(String, CancellationToken)
Loads and returns the model.
Declaration
public Task<object> LoadModelAsync(string path, CancellationToken token = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The file path. |
System.Threading.CancellationToken | token | An optional cancallation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Object> | The model object. |