public DeltaHandler(RequestHandler other, DeltaSnapshot deltaSnapshot, string deltaToken) : base(other, HttpMethod.GET, deltaSnapshot.QueryUri) { DeltaToken = deltaToken; DeltaSnapshot = deltaSnapshot.Clone(); DeltaItems = new List<ODataItem>(); }
public UpdateHandler(RequestHandler other, HttpMethod httpMethod, Uri requestUri = null, IEnumerable<KeyValuePair<string, string>> headers = null) : base(other, httpMethod, requestUri, headers) { if (httpMethod != HttpMethod.PATCH && httpMethod != HttpMethod.PUT) { throw new ArgumentException("The HttpMethod in UpdateHandler must be PATCH or PUT."); } }
public OperationHandler(RequestHandler other, HttpMethod httpMethod) : base(other, httpMethod) { if (httpMethod != HttpMethod.GET && httpMethod != HttpMethod.POST) { throw new ArgumentException("The HttpMethod in OperationHandler must be GET or POST."); } }
protected RequestHandler(RequestHandler other, HttpMethod httpMethod, Uri requestUri = null, IEnumerable<KeyValuePair<string, string>> headers = null) { // TODO: [tiano] We should have a deep check in to prevent infinite loop caused by bad code. this.HttpMethod = httpMethod; if (requestUri == null) { this.RequestUri = Utility.RebuildUri(other.RequestUri); } else { this.RequestUri = Utility.RebuildUri(requestUri); } this.DataSource = other.DataSource; if (headers == null) { this.RequestAcceptHeader = other.RequestAcceptHeader; this.RequestHeaders = new Dictionary<string, string>(other.RequestHeaders); } else { this.RequestHeaders = new Dictionary<string, string>(); foreach (KeyValuePair<string, string> kvp in headers) { this.RequestHeaders[kvp.Key] = kvp.Value; } this.RequestAcceptHeader = this.RequestHeaders.ContainsKey("Accept") ? this.RequestHeaders["Accept"] : string.Empty; } this.ServiceRootUri = Utility.RebuildUri(other.ServiceRootUri); this.QueryContext = new QueryContext(this.ServiceRootUri, this.RequestUri, this.DataSource.Model); this.PreferenceContext = other.PreferenceContext; }
public ODataSimplifiedCreateHandler(RequestHandler other) : base(other) { }
public ODataSimplifiedQueryHandler(RequestHandler other) : base(other) { }
public CreateHandler(RequestHandler other, Uri requestUri = null, IEnumerable<KeyValuePair<string, string>> headers = null) : base(other, HttpMethod.POST, requestUri, headers) { }
public BatchHandler(RequestHandler other) : base(other, HttpMethod.POST, other.RequestUri, null) { }
public PluggableFormatCreateHandler(RequestHandler other) : base(other) { }
public ServiceDocumentHandler(RequestHandler other) : base(other, HttpMethod.GET) { }
public CreateHandler(RequestHandler other, Uri requestUri = null, IEnumerable <KeyValuePair <string, string> > headers = null) : base(other, HttpMethod.POST, requestUri, headers) { }
public StatusMonitorRequestHandler(RequestHandler other, Uri requestUri = null, IEnumerable <KeyValuePair <string, string> > headers = null) : base(other, HttpMethod.GET, requestUri, headers) { }
public ErrorHandler(RequestHandler other, Exception exception) : base(other, HttpMethod.GET, other.ServiceRootUri, null) { this.HandledException = exception; }
public AsyncTask(RequestHandler requestHandler, IODataRequestMessage requestMessage, DateTime dueAt) { this.requestHandler = requestHandler; this.requestMessage = requestMessage; this.dueAt = dueAt; }
public PluggableFormatQueryHandler(RequestHandler other) : base(other) { }
public PluggableFormatOperationHandler(RequestHandler other, HttpMethod httpMethod) : base(other, httpMethod) { }
public MetadataDocumentHandler(RequestHandler other) : base(other, HttpMethod.GET) { }
public MediaStreamHandler(RequestHandler other, HttpMethod method) : base(other, method) { }
public PluggableFormatErrorHandler(RequestHandler other, Exception exception) : base(other, exception) { }
public StatusMonitorRequestHandler(RequestHandler other, Uri requestUri = null, IEnumerable<KeyValuePair<string, string>> headers = null) : base(other, HttpMethod.GET, requestUri, headers) { }