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); }
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; }
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(); }
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(); }