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

            // 默认配置
            this.style = "width:100%;height:100;";
        }
Ejemplo n.º 2
0
 public ProductsController(IProductService productService, ITransactionManager transactionManager, IATMService aTMService)
 {
     _aTMService         = aTMService;
     _productService     = productService;
     _transactionManager = transactionManager;
     _aTMService.Withdraw(10, Currency.USD, "", Country.Germany);
 }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
 public UploadFile()
 {
     this.atmService = (IATMService)GetObject("ATMService");
 }
Ejemplo n.º 5
0
        //private readonly IMemoryCache _cache;

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