示例#1
0
        public RequestBuilder Body(BodyProvider provider)
        {
            if (this.method == HttpVerb.Head || this.method == HttpVerb.Get)
            {
                throw new InvalidOperationException("Cannot set the body of a GET or HEAD request");
            }

            this.bodyProvider = provider;
            return(this);
        }
示例#2
0
        public RequestBuilder Body(BodyProvider provider)
        {
            if (this.method == HttpVerb.Head || this.method == HttpVerb.Get)
            {
                throw new InvalidOperationException("Cannot set the body of a GET or HEAD request");
            }

            this.bodyProvider = provider;
            return this;
        }
示例#3
0
            public void MakeRequest(HttpVerb method, string url, HeaderProvider header, AuthenticationProvider auth, BodyProvider body)
            {
                this.method = method;
                this.url = url;
                this.headers = header;
                this.auth = auth;
                this.body = body;

                this.MakeRequest();
            }
示例#4
0
        public ThreadedDriver(DeviceSettings settings)
        {
            // FIXME: Dangerous. We should do this only on Player.
            K4aExtensions.DisableSafeCopyNativeBuffers();

            Settings = settings;

            this.provider = new BodyProvider();

            this.bodyObj = GameObject.Find("Kinect4AzureTracker"); //TODO: Remove later

            _captureThread = new Thread(CaptureThread);
            _captureThread.Start();
        }
示例#5
0
            public void MakeRequest(HttpVerb method, string url, HeaderProvider header, AuthenticationProvider auth, BodyProvider body)
            {
                this.method  = method;
                this.url     = url;
                this.headers = header;
                this.auth    = auth;
                this.body    = body;

                this.MakeRequest();
            }