Beispiel #1
0
        /// <summary>
        /// 构造函数
        /// </summary>
        public ATM()
        {
            this.atmService = (IATMService)GetObject("ATMService");

            // 默认配置
            this.style = "width:100%;height:100;";
        }
 public ProductsController(IProductService productService, ITransactionManager transactionManager, IATMService aTMService)
 {
     _aTMService         = aTMService;
     _productService     = productService;
     _transactionManager = transactionManager;
     _aTMService.Withdraw(10, Currency.USD, "", Country.Germany);
 }
        public ATMProxy()
        {
            string address = "net.tcp://localhost:4002/IATMService";
            var    binding = new NetTcpBinding();
            ChannelFactory <IATMService> factoryATM = new ChannelFactory <IATMService>(binding, new EndpointAddress(address));

            proxySCS = factoryATM.CreateChannel();
        }
Beispiel #4
0
 public UploadFile()
 {
     this.atmService = (IATMService)GetObject("ATMService");
 }
Beispiel #5
0
        //private readonly IMemoryCache _cache;

        public BankAccountController(IATMService service, IOptions <AppSettings> options)
        {
            _service = service;
            // _cache = cache;
            _options = options.Value;
        }
Beispiel #6
0
 public ATMAction()
 {
     this.atmService = (IATMService)GetObject("ATMService");
 }