Table of Contents

Class FlowDocumentService

Namespace
Cress.Studio.Services
Assembly
Cress.Studio.Core.dll
public sealed class FlowDocumentService
Inheritance
FlowDocumentService
Inherited Members

Constructors

FlowDocumentService(FlowParser)

public FlowDocumentService(FlowParser flowParser)

Parameters

flowParser FlowParser

Methods

CreateNew(string, string)

public FlowEditorDocument CreateNew(string projectRoot, string flowsRelativePath)

Parameters

projectRoot string
flowsRelativePath string

Returns

FlowEditorDocument

Load(string)

public OperationResult<FlowEditorDocument> Load(string filePath)

Parameters

filePath string

Returns

OperationResult<FlowEditorDocument>

LoadFromSource(string, string?)

public OperationResult<FlowEditorDocument> LoadFromSource(string sourceText, string? filePath = null)

Parameters

sourceText string
filePath string

Returns

OperationResult<FlowEditorDocument>

Save(FlowEditorDocument)

public OperationResult<string> Save(FlowEditorDocument document)

Parameters

document FlowEditorDocument

Returns

OperationResult<string>

Serialize(FlowEditorDocument)

public string Serialize(FlowEditorDocument document)

Parameters

document FlowEditorDocument

Returns

string