private void Initialize()
 {
     Logger.Info(new string('-', 42));
     ServiceCallback = new ServiceCallback(this);
     WcfContext = new InstanceContext(ServiceCallback);
     Binding = new NetTcpBinding("NetTcpBinding_IWCFConnection");
     WcfAddress = new EndpointAddress($"net.tcp://{ConnectionSettings.Host}:{ConnectionSettings.Port}/TradingService");
     WcfClient = new WCFConnectionClient(WcfContext, Binding, WcfAddress);
 }
Exemple #2
0
 private void Initialize()
 {
     _callbackObject = new CallbackObject(this);
     _context        = new InstanceContext(_callbackObject);
     _client         = new WCFConnectionClient(_context, _binding, _endpoint);
 }