-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathISystemService.cs
More file actions
26 lines (22 loc) · 847 Bytes
/
ISystemService.cs
File metadata and controls
26 lines (22 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System.Collections;
namespace uFrame.Kernel
{
public interface ISystemService
{
/// <summary>
/// The Aggregator that must be used to setup everything.
/// </summary>
IEventAggregator EventAggregator { get; set; }
/// <summary>
/// The setup method is called when the controller is first created and has been injected. Use this
/// to subscribe to any events on the EventAggregator
/// </summary>
void Setup();
/// <summary>
/// The SetupAsync method is called after the Setup method is invoke, if this service needs to load anything
/// async, this is the perfect place to do it. (e.g. Logging a user in, download player data..etc)
/// </summary>
/// <returns></returns>
IEnumerator SetupAsync();
}
}