예제 #1
0
파일: ATM.cs 프로젝트: eagle2014/easeerp
        /// <summary>
        /// 构造函数
        /// </summary>
        public ATM()
        {
            this.atmService = (IATMService)GetObject("ATMService");

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

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