Show / Hide Table of Contents

    Class TaskFuncFactory<TTuple, TResult>

    Provides an easy way of invoking an System.Func<TResult> function delegate regardless of the amount of parameters provided.

    Inheritance
    System.Object
    TemplateFactory<TTuple>
    TaskFuncFactory<TTuple, TResult>
    Inherited Members
    TemplateFactory<TTuple>.GenericArguments
    TemplateFactory<TTuple>.HasDelegate
    TemplateFactory<TTuple>.DelegateInfo
    TemplateFactory<TTuple>.ToString()
    TemplateFactory<TTuple>.ThrowIfNoValidDelegate(Boolean)
    Namespace: Cuemon
    Assembly: Cuemon.Core.dll
    Syntax
    public sealed class TaskFuncFactory<TTuple, TResult> : TemplateFactory<TTuple> where TTuple : Template
    Type Parameters
    Name Description
    TTuple

    The type of the n-tuple representation of a Template.

    TResult

    The type of the return value of the function delegate Cuemon.TaskFuncFactory`2.Method.

    Constructors

    | Improve this Doc

    TaskFuncFactory(Func<TTuple, Task<TResult>>, TTuple)

    Initializes a new instance of the TaskFuncFactory<TTuple, TResult> class.

    Declaration
    public TaskFuncFactory(Func<TTuple, Task<TResult>> method, TTuple tuple)
    Parameters
    Type Name Description
    System.Func<TTuple, System.Threading.Tasks.Task<TResult>> method

    The function delegate to invoke.

    TTuple tuple

    The n-tuple argument of method.

    Methods

    | Improve this Doc

    Clone()

    Creates a shallow copy of the current TaskFuncFactory<TTuple, TResult> object.

    Declaration
    public TaskFuncFactory<TTuple, TResult> Clone()
    Returns
    Type Description
    TaskFuncFactory<TTuple, TResult>

    A new TaskFuncFactory<TTuple, TResult> that is a copy of this instance.

    Remarks

    When thread safety is required this is the method to invoke.

    | Improve this Doc

    ExecuteMethodAsync()

    Executes the function delegate associated with this instance.

    Declaration
    public Task<TResult> ExecuteMethodAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task<TResult>

    The result of the the function delegate associated with this instance.

    Extension Methods

    ConverterExtensions.ParseWith<TSource, TResult>(TSource, Func<TSource, TResult>)
    ConverterExtensions.ParseWith<TSource, T, TResult>(TSource, Func<TSource, T, TResult>, T)
    ConverterExtensions.ParseWith<TSource, T1, T2, TResult>(TSource, Func<TSource, T1, T2, TResult>, T1, T2)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, TResult>(TSource, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, TResult>(TSource, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
    ConverterExtensions.As<TResult>(Object)
    ConverterExtensions.As<TResult>(Object, TResult)
    ConverterExtensions.As<TResult>(Object, TResult, IFormatProvider)
    DelegateUtilityExtensions.Wrap<TResult>(TResult)
    DelegateUtilityExtensions.DynamicWrap<TResult>(TResult)
    TweakerExtensions.Adjust<T>(T, Func<T, T>)
    TypeUtilityExtensions.Is<T>(Object)
    TypeUtilityExtensions.IsNot<T>(Object)
    TypeUtilityExtensions.IsNullable<T>(T)
    WrapperExtensions.UseWrapper<T>(T, Action<IDictionary<String, Object>>)
    WrapperExtensions.UseWrapper<T>(T, MemberInfo, Action<IDictionary<String, Object>>)
    EnumerableUtilityExtensions.Yield<TSource>(TSource)
    HashUtilityExtensions.ComputeHash(Object, Action<HashOptions>)
    HmacUtilityExtensions.ComputeKeyedHash(Object, Byte[], Action<KeyedHashOptions>)
    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX