Пример #1
0
        public async Task <string> Get()
        {
            IBuy mybuy =
                ServiceProxy.Create <IBuy>(new Uri("fabric:/TSEIS/Requester"));

            bool ok = await mybuy.BuyStockAsync();


            return(ok.ToString());
        }
Пример #2
0
 public buyAcarModel(IHostingEnvironment hostingEnv, ICheck incomes, IManufacture manufacture, IOutcome outcome, ICar car, IBuy buy, ICash cash, ICheck check, IBuyRecords buyrecord, Iperson saleperson, Ifile file)
 {
     _incomes     = incomes;
     _hostingEnv  = hostingEnv;
     _manufacture = manufacture;
     _outcome     = outcome;
     _car         = car;
     _buy         = buy;
     _cash        = cash;
     _check       = check;
     _buyrecord   = buyrecord;
     _saleperson  = saleperson;
     _file        = file;
 }
Пример #3
0
 public void SetStrategy(IBuy buy)
 {
     _buy = buy;
 }