/// <summary> /// Initializes a new instance. /// </summary> /// <param name="resourceUri"></param> /// <param name="method"></param> public IORequest( Uri resourceUri, IOMethod method) { Contract.Requires <ArgumentNullException>(resourceUri != null); Contract.Requires <ArgumentException>(resourceUri.IsAbsoluteUri); this.resourceUri = resourceUri; this.method = method; this.headers = new Headers(); this.context = new DynamicDictionary(); }
/// <summary> /// Initializes a new instance. /// </summary> /// <param name="resourceUri"></param> /// <param name="method"></param> public IORequest( Uri resourceUri, IOMethod method) { Contract.Requires<ArgumentNullException>(resourceUri != null); Contract.Requires<ArgumentException>(resourceUri.IsAbsoluteUri); this.resourceUri = resourceUri; this.method = method; this.headers = new Headers(); this.context = new DynamicDictionary(); }