public CurrencyService(CurrencyDBContext dBContext, IMapper mapper, IAPIConsumer APIConsumer, ILogger <CurrencyService> logger) { _dBContext = dBContext; _mapper = mapper; _APIConsumer = APIConsumer; _logger = logger; }
public ProductService(IAPIConsumer api) { _api = api; _client = new MobileServiceClient(api.DefaultEndPoint); //InitLocalStoreAsync(); _store = new MobileServiceSQLiteStore("eshopelocaldb.db"); _store.DefineTable <Product>(); _client.SyncContext.InitializeAsync(_store); var handler = new MobileServiceSyncHandler(); //_client.SyncContext.InitializeAsync(_store, handler, StoreTrackingOptions.None); _productTable = _client.GetSyncTable <Product>(); }
public OrderService(IAPIConsumer api) { _api = api; }
public AuthenticationService(IAPIConsumer api) { _api = api; }
public CurrencyConverterService(IAPIConsumer aPIConsumer, ILogger <CurrencyConverterService> logger) { _APIConsumer = aPIConsumer; _logger = logger; }