Ejemplo n.º 1
0
		/// <summary>
		/// Initializes a new instance of the <see cref="KeyValueFormEncoding"/> class.
		/// </summary>
		/// <param name="conformanceLevel">How strictly an incoming Key-Value Form message will be held to the spec.</param>
		public KeyValueFormEncoding(KeyValueFormConformanceLevel conformanceLevel) {
			this.ConformanceLevel = conformanceLevel;
		}
 /// <summary>
 /// Initializes a new instance of the <see cref="KeyValueFormEncoding"/> class.
 /// </summary>
 /// <param name="conformanceLevel">How strictly an incoming Key-Value Form message will be held to the spec.</param>
 public KeyValueFormEncoding(KeyValueFormConformanceLevel conformanceLevel)
 {
     this.ConformanceLevel = conformanceLevel;
 }
		private void Illegal(string s, KeyValueFormConformanceLevel level) {
			new KeyValueFormEncoding(level).GetDictionary(new MemoryStream(Encoding.UTF8.GetBytes(s)));
		}
		private async Task IllegalAsync(string s, KeyValueFormConformanceLevel level) {
			await new KeyValueFormEncoding(level).GetDictionaryAsync(new MemoryStream(Encoding.UTF8.GetBytes(s)), CancellationToken.None);
		}
Ejemplo n.º 5
0
 private async Task IllegalAsync(string s, KeyValueFormConformanceLevel level)
 {
     await new KeyValueFormEncoding(level).GetDictionaryAsync(new MemoryStream(Encoding.UTF8.GetBytes(s)), CancellationToken.None);
 }
Ejemplo n.º 6
0
 private void Illegal(string s, KeyValueFormConformanceLevel level)
 {
     new KeyValueFormEncoding(level).GetDictionary(new MemoryStream(Encoding.UTF8.GetBytes(s)));
 }