Class ContentServer
- Assembly
- MonoGame.Framework.Content.Pipeline.dll
Describes a content server implementation to be used by the ContentBuilder.
public abstract class ContentServer
- Inheritance
-
ContentServer
- Derived
- Inherited Members
Properties
Logger
ContentBuildLogger to use for the server to log messages.
If run from ContentBuilder it will be set by it.
public ContentBuildLogger Logger { get; set; }
Property Value
Methods
NotifyContentRequestCompiled()
The content server calls this event once it has finished compiling content.
This method is called by the main thread and should be a non blocking call.
public abstract void NotifyContentRequestCompiled()
OnContentRequested(ContentRequestedArgs)
A protected method used to invoke ContentRequested event.
protected void OnContentRequested(ContentRequestedArgs args)
Parameters
args
ContentRequestedArgsContentRequestedArgs to use for invoking ContentRequested event.
StartListening()
Requests the content server to start listening for the events.
This method is called by the main thread and should be a non blocking call.
public abstract void StartListening()
StopListening()
Requests the content server to stop listening for the events.
This method is called by the main thread and should be a non blocking call.
public abstract void StopListening()
Events
ContentRequested
An event that gets called when the content server recieves a content request by an IContentProvider.
public event EventHandler<ContentRequestedArgs>? ContentRequested