public Function()
        {
            var serviceCollection = new ServiceCollection();

            ConfigureServices(serviceCollection);
            var serviceProvider = serviceCollection.BuildServiceProvider();

            DataContext            = serviceProvider.GetService <ISqlDataContext>();
            _exceptionLogFormatter = serviceProvider.GetService <IExceptionLogFormatter>();
        }
Exemplo n.º 2
0
 public OrderRepositoryUmbrella(ISqlDataContext context)
 {
     _context = context;
 }
Exemplo n.º 3
0
 public UserService(ISqlDataContext _dataContext) : base()
 {
     dataContext = _dataContext;
 }
Exemplo n.º 4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="_dataContext"></param>
 public ProductService(ISqlDataContext _dataContext)
 {
     dataContext = _dataContext;
 }
Exemplo n.º 5
0
 public HistoryRepository(ISqlDataContext sqlDataContext)
 {
     _sqlDataContext = sqlDataContext;
 }
 public CustomerRepositoryUmbrella(ISqlDataContext context)
 {
     _context = context;
 }
Exemplo n.º 7
0
 public CurrencyConverterRepository(ISqlDataContext sqlDataContext, IJayaHttpClient jayaHttpClient)
 {
     _jayaHttpClient = jayaHttpClient;
     _sqlDataContext = sqlDataContext;
 }