Ejemplo n.º 1
0
 public MainWindow()
 {
     InitializeComponent();
     //_Proxy = new GeoClient("tcpEP");
     _Proxy       = new StatefulGeoClient();
     _SyncContext = SynchronizationContext.Current;
 }
Ejemplo n.º 2
0
 public MainWindow()
 {
     InitializeComponent();
     _Proxy       = new GeoClient(new InstanceContext(this), "tcpEp");
     _Proxy2      = new StatefulGeoClient();
     _SyncContext = SynchronizationContext.Current;
 }
        public MainWindow()
        {
            InitializeComponent();
            _Proxy = new GeoClient(new InstanceContext(this), "tcpEp");
            _Proxy2 = new StatefulGeoClient();
            _SyncContext = SynchronizationContext.Current;

        }
Ejemplo n.º 4
0
        public MainWindow()
        {
            InitializeComponent();

            this.Title = "UI Running on Thread " + Thread.CurrentThread.ManagedThreadId +
                         " | Process " + Process.GetCurrentProcess().Id.ToString();
            _proxy = new GeoClient();
            _proxy.Open();
            _proxy2 = new StatefulGeoClient();
        }
Ejemplo n.º 5
0
        public MainWindow()
        {
            InitializeComponent();
            //EndpointAddress address = new EndpointAddress("net.tcp://localhost:8009/GeoService");
            //Binding binding = new NetTcpBinding();
            //binding.SendTimeout = new TimeSpan(0, 0, 0, 5);
            //((NetTcpBinding)binding).MaxReceivedMessageSize = 2000000;
            //binding.ReceiveTimeout = new TimeSpan(0,0,0,5);

            //_Proxy = new GeoClient(binding,address);
            _Proxy = new StatefulGeoClient();
        }
Ejemplo n.º 6
0
        public MainWindow()
        {
            InitializeComponent();

            _Proxy = new GeoClient("tcpEP");
            _Proxy.Open();
            _ProxyStateful = new StatefulGeoClient();

            _SyncContext   = SynchronizationContext.Current;
            _TaskScheduler = TaskScheduler.FromCurrentSynchronizationContext();

            this.Title = "UI Running on Thread " + Thread.CurrentThread.ManagedThreadId +
                         " | Process " + Process.GetCurrentProcess().Id.ToString();
        }
Ejemplo n.º 7
0
        public MainWindow()
        {
            InitializeComponent();

            //This string sent to GeoClient constructor will define which configuration will be used. Very flexible. Check App.Config.
            //This call, in the way it's configured, will only work with WindowsHost. For WebHost, use webEP.
            _Proxy = new GeoClient("tcpEP");

            //Sleeping to have the chance to click Start Service on WindowsHost.
            Thread.Sleep(3000);
            _Proxy.Open();

            _ProxyStateful = new StatefulGeoClient();
            _SyncContext   = SynchronizationContext.Current;
        }
 public ShellViewModel()
 {
     this.ZipCodes = new ObservableCollection<ZipCodeData>();
     this.statefulProxy = new StatefulGeoClient();
 }
Ejemplo n.º 9
0
 public MainWindow()
 {
     InitializeComponent();
     sClient = new StatefulGeoClient();
 }