blob: e5487bc1ed692ed75e1ebef825c2b94cb73ee1f6 (
plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.FSE.BL.Services;
namespace Tango.FSE.BL
{
/// <summary>
/// Represents a unit of work for all data services.
/// </summary>
public class FSEServicesContainer
{
/// <summary>
/// Gets the machines service.
/// </summary>
public MachinesService MachinesService { get; private set; }
/// <summary>
/// Gets or sets the users service.
/// </summary>
public UsersService UsersService { get; set; }
/// <summary>
/// Gets or sets the gateway service.
/// </summary>
public GatewayService GatewayService { get; set; }
/// <summary>
/// Gets or sets the authentication service.
/// </summary>
public AuthenticationService AuthenticationService { get; set; }
/// <summary>
/// Gets or sets the bug reporting service.
/// </summary>
public BugReportingService BugReportingService { get; set; }
/// <summary>
/// Gets or sets the tango versions service.
/// </summary>
public TangoVersionsService TangoVersionsService { get; set; }
/// <summary>
/// Gets or sets the tango versions service.
/// </summary>
public TechComponentsService TechComponentsService { get; set; }
/// <summary>
/// Gets or sets the published procedure projects service.
/// </summary>
public PublishedProcedureProjectsService PublishedProcedureProjectsService { get; set; }
/// <summary>
/// Gets or sets the machine events service.
/// </summary>
public MachineEventsService MachineEventsService { get; set; }
/// <summary>
/// Gets or sets the organizations service.
/// </summary>
public OrganizationsService OrganizationsService { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="FSEServicesContainer"/> class.
/// </summary>
/// <param name="authentication">The authentication.</param>
public FSEServicesContainer(IAuthenticationService authentication)
{
MachinesService = new MachinesService();
UsersService = new UsersService();
GatewayService = new GatewayService();
AuthenticationService = new AuthenticationService();
BugReportingService = new BugReportingService();
TangoVersionsService = new TangoVersionsService();
TechComponentsService = new TechComponentsService();
PublishedProcedureProjectsService = new PublishedProcedureProjectsService();
MachineEventsService = new MachineEventsService();
OrganizationsService = new OrganizationsService();
}
}
}
|