-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAppModule.cs
33 lines (28 loc) · 887 Bytes
/
AppModule.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
using OpenStore.Services;
namespace OpenStore
{
public class AppModule
{
private static readonly ProductService _productService;
private static readonly CupomService _cupomService;
private static readonly PrintService _printService;
static AppModule()
{
_printService = new PrintService(@"C:\TEMP\cupons\");
_productService = new ProductService("http://localhost:5000/v1/product");
_cupomService = new CupomService("http://localhost:5000/v1/cupom");
}
public static PrintService GetPrintService()
{
return _printService;
}
public static ProductService GetProductService()
{
return _productService;
}
public static CupomService GetCupomService()
{
return _cupomService;
}
}
}