Method CreateResult
CreateResult<TResult>(string, int, string)
Helper method to create the desired result of a data builder. This should always be used to create the build result with additional details added as needed. The Result.Duration should always be set at the end of the build script in the non-error scenario.
선언
public static TResult CreateResult<TResult>(string settingsPath, int locCount, string err = "") where TResult : IDataBuilderResult
파라미터
타입 | 이름 | 설명 |
---|---|---|
string | settingsPath | Path to the settings.json file (name may not always match that exactly) generated by this build |
int | locCount | Number of locations created by this build |
string | err | Error string if there were problems with the build. Defaults to empty |
반환
타입 | 설명 |
---|---|
TResult |
타입 파라미터
이름 | 설명 |
---|---|
TResult | The actual build result created |
CreateResult<TResult>()
Helper method to create the desired result of a data builder. This should always be used to create the build result with additional details added as needed. The Result.Duration should always be set at the end of the build script in the non-error scenario. Other results should be set as available.
선언
public static TResult CreateResult<TResult>() where TResult : IDataBuilderResult
반환
타입 | 설명 |
---|---|
TResult |
타입 파라미터
이름 | 설명 |
---|---|
TResult |