-
Notifications
You must be signed in to change notification settings - Fork 0
/
ApplicationContext.cs
47 lines (36 loc) · 1.05 KB
/
ApplicationContext.cs
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using Alnet.AudioServer.Components.AudioServerContract;
using Alnet.AudioServer.Components.NAudioServer;
namespace Alnet.AudioServer
{
internal sealed class ApplicationContext
{
#region Private fields
/// <summary>
/// The audio player controller
/// </summary>
private readonly IAudioPlayerController _audioPlayerController = new AudioPlayerController();
#endregion
#region Singleton
/// <summary>
/// The singleton instance.
/// </summary>
private static readonly ApplicationContext _instance = new ApplicationContext();
private ApplicationContext()
{
}
/// <summary>
/// The singleton instance.
/// </summary>
public static ApplicationContext Instance
{
get { return _instance; }
}
#endregion
#region Properties
public IAudioPlayerController AudioPlayerController
{
get { return _audioPlayerController; }
}
#endregion
}
}