C# 클래스 Bari.Core.Model.Loader.InMemoryYamlModelLoader

Model loader implementation which loads a YAML document directly from a string Used primarily for testing
상속: YamlModelLoaderBase, IModelLoader
파일 보기 프로젝트 열기: vigoo/bari

공개 메소드들

메소드 설명
InMemoryYamlModelLoader ( ISuiteFactory suiteFactory, IEnumerable parametersLoaders, IUserOutput output, IPluginLoader pluginLoader, IEnvironmentVariableContext environmentVariableContext, ISuiteValidator suiteValidator ) : System.Collections.Generic

Creates the model loader

Load ( string source ) : Suite

Loads a suite model from the given source

It is guaranteed that this method will only be called if IModelLoader.Supports return true for the same source.

Supports ( string source ) : bool

Returns true if the loader can load suite model from the given source

메소드 상세

InMemoryYamlModelLoader() 공개 메소드

Creates the model loader
public InMemoryYamlModelLoader ( ISuiteFactory suiteFactory, IEnumerable parametersLoaders, IUserOutput output, IPluginLoader pluginLoader, IEnvironmentVariableContext environmentVariableContext, ISuiteValidator suiteValidator ) : System.Collections.Generic
suiteFactory ISuiteFactory Factory interface to create new suite instances
parametersLoaders IEnumerable Parameter loader implementations
output IUserOutput Output interface to issue warnings
pluginLoader IPluginLoader Plugin loader interface
environmentVariableContext IEnvironmentVariableContext Environment variable context
suiteValidator ISuiteValidator
리턴 System.Collections.Generic

Load() 공개 메소드

Loads a suite model from the given source

It is guaranteed that this method will only be called if IModelLoader.Supports return true for the same source.

public Load ( string source ) : Suite
source string Source, can mean anything (file names, urls, markup, etc.)
리턴 Suite

Supports() 공개 메소드

Returns true if the loader can load suite model from the given source
public Supports ( string source ) : bool
source string Source, can mean anything (file names, urls, markup, etc.)
리턴 bool