ForumRequestExtensionsForumPermissionsRequestAsyncTRequest, TResponse - метод
Пространство имён: Tessa.ForumsСборка: Tessa (в Tessa.dll) Версия: 4.0.4
public static Task<(TResponse , ValidationResult )> ForumPermissionsRequestAsync<TRequest, TResponse>(
this ICardRepository repository,
Guid requestID,
TRequest request,
Func<Dictionary<string, Object>, TResponse> responseFactory,
CancellationToken cancellationToken = default
)
where TRequest : StorageObject
where TResponse : StorageObject
<ExtensionAttribute>
Public Shared Function ForumPermissionsRequestAsync(Of TRequest As StorageObject, TResponse As StorageObject) (
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 : StorageObject
static Task<ValueTuple<TResponse, ValidationResult^>>^ ForumPermissionsRequestAsync(
ICardRepository^ repository,
Guid requestID,
TRequest request,
Func<Dictionary<String^, Object^>^, TResponse>^ responseFactory,
CancellationToken cancellationToken = CancellationToken()
)
[<ExtensionAttribute>]
static member ForumPermissionsRequestAsync :
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 : StorageObject
- repository ICardRepository
-
- requestID Guid
-
- request TRequest
-
- responseFactory FuncDictionaryString, Object, TResponse
-
- cancellationToken CancellationToken (Optional)
-
- TRequest
- TResponse
TaskValueTupleTResponse,
ValidationResultВ Visual Basic и C# этот метод можно вызывать как метод экземпляра для любого объекта типа
ICardRepository. При вызове метода для экземпляра следует опускать первый параметр. Дополнительные сведения см. в разделе
Методы расширения (Visual Basic) или
Методы расширения (Руководство по программированию в C#).