/// <summary>
 /// Set string value empty ''
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='stringBody'>
 /// </param>
 public static void PutEmpty(this IStringModel operations, string stringBody)
 {
     Task.Factory.StartNew(s => ((IStringModel)s).PutEmptyAsync(stringBody), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
 /// <summary>
 /// Set string value null
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='stringBody'>
 /// Possible values include: ''
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task PutNullAsync(this IStringModel operations, string stringBody = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.PutNullWithHttpMessagesAsync(stringBody, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Get empty string value value ''
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static string GetEmpty(this IStringModel operations)
 {
     return(operations.GetEmptyAsync().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Get null value that is expected to be base64url encoded
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static byte[] GetNullBase64UrlEncoded(this IStringModel operations)
 {
     return(operations.GetNullBase64UrlEncodedAsync().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Set string value null
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='stringBody'>
 /// Possible values include: ''
 /// </param>
 public static void PutNull(this IStringModel operations, string stringBody = default(string))
 {
     operations.PutNullAsync(stringBody).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Put value that is base64url encoded
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='stringBody'>
 /// </param>
 public static void PutBase64UrlEncoded(this IStringModel operations, byte[] stringBody)
 {
     operations.PutBase64UrlEncodedAsync(stringBody).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Put value that is base64url encoded
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='stringBody'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task PutBase64UrlEncodedAsync(this IStringModel operations, byte[] stringBody, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.PutBase64UrlEncodedWithHttpMessagesAsync(stringBody, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Set String value with leading and trailing whitespace
 /// '&lt;tab&gt;&lt;space&gt;&lt;space&gt;Now is the time for all good men to
 /// come to the aid of their country&lt;tab&gt;&lt;space&gt;&lt;space&gt;'
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task PutWhitespaceAsync(this IStringModel operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.PutWhitespaceWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Get String value when no string value is sent in response payload
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static string GetNotProvided(this IStringModel operations)
 {
     return(operations.GetNotProvidedAsync().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Set String value with leading and trailing whitespace
 /// '&lt;tab&gt;&lt;space&gt;&lt;space&gt;Now is the time for all good men to
 /// come to the aid of their country&lt;tab&gt;&lt;space&gt;&lt;space&gt;'
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static void PutWhitespace(this IStringModel operations)
 {
     operations.PutWhitespaceAsync().GetAwaiter().GetResult();
 }
 /// <summary>
 /// Get string value with leading and trailing whitespace
 /// '&lt;tab&gt;&lt;space&gt;&lt;space&gt;Now is the time for all good men to
 /// come to the aid of their country&lt;tab&gt;&lt;space&gt;&lt;space&gt;'
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static string GetWhitespace(this IStringModel operations)
 {
     return(operations.GetWhitespaceAsync().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Set string value mbcs
 /// '啊齄丂狛狜隣郎隣兀﨩ˊ〞〡¦℡㈱‐ー﹡﹢﹫、〓ⅰⅹ⒈€㈠㈩ⅠⅫ! ̄ぁんァヶΑ︴АЯаяāɡㄅㄩ─╋︵﹄︻︱︳︴ⅰⅹɑɡ〇〾⿻⺁䜣€'
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static void PutMbcs(this IStringModel operations)
 {
     operations.PutMbcsAsync().GetAwaiter().GetResult();
 }
示例#13
0
 public IOController(PluginsCollection plugins, IStringModel tokenizer)
 {
     _plugins = plugins;
     _model   = tokenizer;
 }
示例#14
0
 public string Format(string collectionName, IStringModel tokenizer, HttpRequest request)
 {
     return(new HttpQueryParser(new QueryParser())
            .Parse(collectionName.ToHash(), tokenizer, request).ToString());
 }