/// <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(); }
public UploadFile() { this.atmService = (IATMService)GetObject("ATMService"); }
//private readonly IMemoryCache _cache; public BankAccountController(IATMService service, IOptions <AppSettings> options) { _service = service; // _cache = cache; _options = options.Value; }
public ATMAction() { this.atmService = (IATMService)GetObject("ATMService"); }