DeveloperOnlineContentLoader ClassDelta Engine Documentation
Connects to the Content Service and can reload files at runtime, but only works when a developer ApiKey has been setup. Will not be used for the end user. View code on GitHub
Inheritance Hierarchy

System Object
  DeltaEngine.Content ContentLoader
    DeltaEngine.Content.Online DeveloperOnlineContentLoader
      DeltaEngine.Editor EditorContentLoader

Namespace: DeltaEngine.Content.Online
Assembly: DeltaEngine.Content.Online (in DeltaEngine.Content.Online.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public class DeveloperOnlineContentLoader : ContentLoader

The DeveloperOnlineContentLoader type exposes the following members.

Constructors

  NameDescription
Protected methodDeveloperOnlineContentLoader
Initializes a new instance of the DeveloperOnlineContentLoader class
Top
Methods

  NameDescription
Protected methodClearBufferedResourcesAndMetaData (Inherited from ContentLoader.)
Public methodDispose
Releases all resources used by the DeveloperOnlineContentLoader
(Overrides ContentLoader Dispose .)
Protected methodGetContentDataStream (Inherited from ContentLoader.)
Public methodGetMetaData (Overrides ContentLoader GetMetaData(String, Type).)
Protected methodHasValidContentMetaDataFile (Overrides ContentLoader HasValidContentMetaDataFile .)
Protected methodReloadContent (Inherited from ContentLoader.)
Protected methodSendCheckProjectContent
Top
Fields

  NameDescription
Protected fieldconnection
Protected fieldisContentReady
Protected fieldmetaData (Inherited from ContentLoader.)
Protected fieldprojectMetaDataFile
Top
Properties

  NameDescription
Protected propertyContentMetaDataFilePath (Inherited from ContentLoader.)
Public propertyContentProjectPath (Inherited from ContentLoader.)
Public propertyLastTimeUpdated (Overrides ContentLoader LastTimeUpdated.)
Protected propertyProjectName
Public propertyStartedToRequestOnlineContent (Inherited from ContentLoader.)
Top
Events

  NameDescription
Public eventContentDeleted
Public eventContentUpdated
Top
Remarks

Tests: DeltaEngine.Content.Online.Tests.DeveloperOnlineContentLoaderTests
Examples

1 unit tests call DeltaEngine.Content.Online.DeveloperOnlineContentLoader
[Test]
public void ConnectToOnlineContentServiceWithoutExistingContent()
{
    if (Directory.Exists("Content"))
        Directory.Delete("Content", true);
    bool ready = false;
    var connection = new OnlineServiceConnection(new MockSettings(),
        () => { throw new ConnectionTimedOut(); });
See Also