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;
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        /// <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
        }
Esempio n. 4
0
 internal DataServiceSaveStream(System.IO.Stream stream, bool close, DataServiceRequestArgs args)
 {
     this.stream = stream;
     this.close  = close;
     this.args   = args;
 }