コード例 #1
0
ファイル: StaticClient.cs プロジェクト: masums/ITCC.Library
 // ReSharper disable once FunctionComplexityOverflow
 internal static Task <VariadicRequestResult <TResponseSuccess, TResponseError> > PerformVariadicRequestAsync
 <TRequestBody, TResponseSuccess, TResponseError>(
     HttpMethod method,
     string partialUri,
     IDictionary <string, string> parameters = null,
     IDictionary <string, string> headers    = null,
     TRequestBody bodyArg = default(TRequestBody),
     Delegates.AuthentificationDataAdder authentificationProvider = null,
     Stream outputStream = null,
     int redirectsLeft   = 0,
     CancellationToken cancellationToken = default(CancellationToken))
     where TRequestBody : class
     where TResponseSuccess : class
     where TResponseError : class
 => RegularClient.PerformVariadicRequestAsync <TRequestBody, TResponseSuccess, TResponseError>(
     method,
     partialUri,
     parameters,
     headers,
     bodyArg,
     authentificationProvider,
     outputStream,
     redirectsLeft,
     cancellationToken);