ForumRequestExtensionsForumRequestAsyncTRequest, TResponse - метод
Пространство имён: Tessa.ForumsСборка: Tessa (в Tessa.dll) Версия: 3.6.0.22
public static Task<(TResponse , ValidationResult )> ForumRequestAsync<TRequest, TResponse>(
this ICardRepository repository,
Guid requestID,
TRequest request,
Func<Dictionary<string, Object>, TResponse> responseFactory,
CancellationToken cancellationToken = default
)
where TRequest : StorageObject
where TResponse : InfoStorageObject
<ExtensionAttribute>
Public Shared Function ForumRequestAsync(Of TRequest As StorageObject, TResponse As InfoStorageObject) (
repository As ICardRepository,
requestID As Guid,
request As TRequest,
responseFactory As Func(Of Dictionary(Of String, Object), TResponse),
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ( As TResponse, As ValidationResult))
public:
[ExtensionAttribute]
generic<typename TRequest, typename TResponse>
where TRequest : StorageObject
where TResponse : InfoStorageObject
static Task<ValueTuple<TResponse, ValidationResult^>>^ ForumRequestAsync(
ICardRepository^ repository,
Guid requestID,
TRequest request,
Func<Dictionary<String^, Object^>^, TResponse>^ responseFactory,
CancellationToken cancellationToken = CancellationToken()
)
[<ExtensionAttribute>]
static member ForumRequestAsync :
repository : ICardRepository *
requestID : Guid *
request : 'TRequest *
responseFactory : Func<Dictionary<string, Object>, 'TResponse> *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ValueTuple<'TResponse, ValidationResult>> when 'TRequest : StorageObject when 'TResponse : InfoStorageObject
- repository ICardRepository
-
- requestID Guid
-
- request TRequest
-
- responseFactory FuncDictionaryString, Object, TResponse
-
- cancellationToken CancellationToken (Optional)
-
- TRequest
- TResponse
TaskValueTupleTResponse,
ValidationResultВ Visual Basic и C# этот метод можно вызывать как метод экземпляра для любого объекта типа
ICardRepository. При вызове метода для экземпляра следует опускать первый параметр. Дополнительные сведения см. в разделе
Методы расширения (Visual Basic) или
Методы расширения (Руководство по программированию в C#).