Ejemplo n.º 1
0
 public void SetOption_IPV6Enabled_Invalid_Fails()
 {
     using (var context = new ZContext())
     {
         // TODO: the exception message is misleading, as the option name is correct, but the value is invalid
         Assert.Throws <ArgumentOutOfRangeException>(() => context.SetOption(ZContextOption.IPV6, -1));
     }
 }
        public KinectAnywhereForm()
        {
            InitializeComponent();
            ConfigurationManager = new ConfigurationManager();

            zmqContext = new ZContext();
            zmqContext.SetOption(ZContextOption.IO_THREADS, 3);
            pointCloudPublisher = new ZSocket(zmqContext, ZSocketType.PUB);
            colorFramePublisher = new ZSocket(zmqContext, ZSocketType.PUB);
            bodyFramePublisher  = new ZSocket(zmqContext, ZSocketType.PUB);
        }