internal static DataServiceRequestArgs RestoreState(Dictionary<string, string> state) { var args = new DataServiceRequestArgs(); foreach (KeyValuePair<string, string> kvp in state) { args.SetHeaderValue(kvp.Key, kvp.Value); } return args; }
internal static DataServiceRequestArgs RestoreState(Dictionary <string, string> state) { var args = new DataServiceRequestArgs(); foreach (KeyValuePair <string, string> kvp in state) { args.SetHeaderValue(kvp.Key, kvp.Value); } return(args); }
/// <summary> /// Constructor /// </summary> /// <param name="stream">The stream to use.</param> /// <param name="close">Should the stream be closed before SaveChanges returns.</param> /// <param name="args">Additional arguments to apply to the request before sending it.</param> internal DataServiceSaveStream(Stream stream, bool close, DataServiceRequestArgs args) { Debug.Assert(stream != null, "stream must not be null."); this.stream = stream; this.close = close; this.args = args; #if DEBUG this.deserializing = false; #endif }
internal DataServiceSaveStream(System.IO.Stream stream, bool close, DataServiceRequestArgs args) { this.stream = stream; this.close = close; this.args = args; }