Gorgon
Show / Hide Table of Contents

Interface IEditorContentImporter

A custom importer for content data.

Namespace: Gorgon.Editor.Services
Assembly: Gorgon.Editor.API.dll
Syntax
public interface IEditorContentImporter

Methods

| Edit this page View Source

CleanUp()

Function to clean up any temporary working data.

Declaration
void CleanUp()
| Edit this page View Source

ImportData(string, CancellationToken)

Function to import content.

Declaration
IGorgonVirtualFile ImportData(string physicalFilePath, CancellationToken cancelToken)
Parameters
Type Name Description
string physicalFilePath

The path to the physical file to import into the virtual file system.

CancellationToken cancelToken

The token used to cancel the operation.

Returns
Type Description
IGorgonVirtualFile

A new virtual file object pointing to the imported file data.

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author