Ejemplo n.º 1
0
        private LocalContext()
        {
            NetTcpBinding   binding = new NetTcpBinding();
            EndpointAddress address = new EndpointAddress(Settings.Default.HostingServiceUri);

            this.manager = new RhspClientManager()
            {
                Binding = binding,
                Address = address,
                Timeout = new TimeSpan(0, 10, 0)
            };

            initializeContext();
        }
Ejemplo n.º 2
0
        public RhspClientManager GetManager()
        {
            RhspCommandContext context = new RhspCommandContext();
            NetTcpBinding      binding = new NetTcpBinding();
            EndpointAddress    address = new EndpointAddress(Settings.Default.HostingServiceUri);

            RhspClientManager manager = new RhspClientManager()
            {
                Binding = binding,
                Address = address,
                Context = context
            };

            return(manager);
        }
 public RhspAdapterFactory(RhspClientManager manager, RhspCommandContext context)
 {
     this.manager = manager;
     this.context = context;
 }
Ejemplo n.º 4
0
 public void Initialize(RhspClientManager manager)
 {
     this.manager     = manager;
     this.initialized = true;
 }