Show / Hide Table of Contents

Class ModelLoader

Implementation of ILoadsModel which loads a model from a JSON source file.

Inheritance
System.Object
ModelLoader
Implements
ILoadsModel
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 Source

LoadModelAsync(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.

Implements

ILoadsModel
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX