コード例 #1
0
    public static GroupingDataflowBlockOptions ConvertToGroupingOptions(this DataflowBlockOptions options)
    {
        Contracts.Requires.That(options != null);

        var result = new GroupingDataflowBlockOptions();

        options.CopyTo(result);
        return(result);
    }
コード例 #2
0
    public static DataflowBlockOptions CreateCopy(this DataflowBlockOptions options)
    {
        Contracts.Requires.That(options != null);

        var result = new DataflowBlockOptions();

        options.CopyTo(result);
        return(result);
    }
コード例 #3
0
    public static ExecutionDataflowBlockOptions ConvertToExecutionOptions(this DataflowBlockOptions options)
    {
        Contracts.Requires.That(options != null);

        var result = new ExecutionDataflowBlockOptions();

        options.CopyTo(result);
        return(result);
    }