49 references to Func
Aspire.Cli.Tests (3)
TestServices\TestDotNetCliRunner.cs (3)
12public Func<FileInfo, string, string, DotNetCliRunnerInvocationOptions, CancellationToken, int>? AddPackageAsyncCallback { get; set; } 16public Func<FileInfo, string[], string[], DotNetCliRunnerInvocationOptions, CancellationToken, (int ExitCode, JsonDocument? Output)>? GetProjectItemsAndPropertiesAsyncCallback { get; set; } 18public Func<string, string, string, DotNetCliRunnerInvocationOptions, CancellationToken, int>? NewProjectAsyncCallback { get; set; }
CatalogDb (1)
Model.cs (1)
12private static readonly Func<CatalogDbContext, int?, int?, int?, int, IAsyncEnumerable<CatalogItem>> s_getCatalogItemsQuery =
CatalogModel (1)
Model.cs (1)
15private static readonly Func<CatalogDbContext, int?, int?, int?, int, IAsyncEnumerable<CatalogItem>> s_getCatalogItemsQuery =
Microsoft.AspNetCore.SignalR.Client.Core (3)
HubConnectionExtensions.cs (1)
320public static IDisposable On<T1, T2, T3, T4, T5>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, Task> handler)
HubConnectionExtensions.OnResult.cs (2)
174public static IDisposable On<T1, T2, T3, T4, T5, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, TResult> handler) 354public static IDisposable On<T1, T2, T3, T4, T5, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, Task<TResult>> handler)
Microsoft.Build.Utilities.UnitTests (1)
ToolLocationHelper_Tests.cs (1)
2675private void CheckGetPathToReferenceAssemblies(TestEnvironment env, string customFrameworkDir, string fallbackSearchPaths, Func<string, string, string, string, string, IList<string>> getPathToReferenceAssemblies)
Microsoft.CodeAnalysis.EditorFeatures (1)
DocumentationComments\AbstractDocumentationCommentCommandHandler.cs (1)
80Func<IDocumentationCommentSnippetService, ParsedDocument, int, DocumentationCommentOptions, CancellationToken, DocumentationCommentSnippet?> getSnippetAction,
Microsoft.CodeAnalysis.UnitTests (2)
Collections\IndexOfTests.cs (2)
27Func<TCollection, int, int, int, IEqualityComparer<int>?, int> indexOfItemIndexCountEQ) 97Func<TCollection, int, int, int, IEqualityComparer<int>?, int> lastIndexOfItemIndexCountEQ)
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
873Func<Solution, ProjectId, ProjectUpdateState, TReference, TReference, (Solution newSolution, ProjectUpdateState newProjectUpdateState)> update,
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
CodeCleanup\MockCodeCleanupProvider.cs (1)
22public Func<MockCodeCleanupProvider, Document, ImmutableArray<TextSpan>, SyntaxFormattingOptions, CancellationToken, Task<Document>>? CleanupDocumentAsyncImpl { get; set; }
Microsoft.DotNet.RemoteExecutor (3)
RemoteExecutor.cs (3)
250public static RemoteInvokeHandle Invoke(Func<string, string, string, string, string, Task<int>> method, string arg1, 318public static RemoteInvokeHandle Invoke(Func<string, string, string, string, string, Task> method, string arg1, 386public static RemoteInvokeHandle Invoke(Func<string, string, string, string, string, int> method,
Microsoft.Extensions.Logging.Abstractions (1)
LoggerMessage.cs (1)
81public static Func<ILogger, T1, T2, T3, T4, IDisposable?> DefineScope<T1, T2, T3, T4>(string formatString)
Microsoft.Extensions.Options (4)
OptionsBuilder.cs (2)
469public virtual OptionsBuilder<TOptions> Validate<TDep1, TDep2, TDep3, TDep4>(Func<TOptions, TDep1, TDep2, TDep3, TDep4, bool> validation) 486public virtual OptionsBuilder<TOptions> Validate<TDep1, TDep2, TDep3, TDep4>(Func<TOptions, TDep1, TDep2, TDep3, TDep4, bool> validation, string failureMessage)
ValidateOptions.cs (2)
312public ValidateOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, Func<TOptions, TDep1, TDep2, TDep3, TDep4, bool> validation, string failureMessage) 333public Func<TOptions, TDep1, TDep2, TDep3, TDep4, bool> Validation { get; }
Microsoft.ML.Core (1)
Utilities\Utils.cs (1)
1125public static TRet MarshalInvoke<TArg1, TArg2, TArg3, TArg4, TArg5, TRet>(Func<TArg1, TArg2, TArg3, TArg4, TArg5, TRet> func,
Microsoft.ML.Data (4)
Commands\CrossValidationCommand.cs (4)
364private readonly Func<IHostEnvironment, IChannel, IDataView, RoleMappedData, IDataView, RoleMappedData> _applyTransformsToTestData; 366private readonly Func<IHostEnvironment, IChannel, IDataView, RoleMappedData, IDataView, RoleMappedData> _applyTransformsToValidationData; 391Func<IHostEnvironment, IChannel, IDataView, RoleMappedData, IDataView, RoleMappedData> applyTransformsToTestData, 395Func<IHostEnvironment, IChannel, IDataView, RoleMappedData, IDataView, RoleMappedData> applyTransformsToValidationData = null,
Microsoft.ML.Transforms (5)
Expression\CodeGen.cs (1)
58{ typeFn = typeof(Func<,,,,,>); break; }
ExpressionTransformer.cs (4)
541var fn = (Func<T0, T1, T2, T3, T4, TDst>)del; 861var fn = (Func<T0, T1, T2, T3, T4, TDst>)del;
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (2)
1430Dim c As CallSite(Of Func(Of CallSite, Object, Object, Object, Object, Object)) = 1431CallSite(Of Func(Of CallSite, Object, Object, Object, Object, Object)).Create(action)
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
239[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Func<,,,,,>))]
netstandard (1)
netstandard.cs (1)
807[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Func<,,,,,>))]
System.Linq.Expressions (4)
System\Dynamic\UpdateDelegates.Generated.cs (3)
457var @this = (CallSite<Func<CallSite, T0, T1, T2, T3, TRet>>)site; 458Func<CallSite, T0, T1, T2, T3, TRet>[] applicable; 459Func<CallSite, T0, T1, T2, T3, TRet> rule, originalRule = @this.Target;
System\Linq\Expressions\Compiler\DelegateHelpers.Generated.cs (1)
203return typeof(Func<,,,,,>).MakeGenericType(types);
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\FutureFactory.cs (3)
1075Func<TArg1, TArg2, TArg3, AsyncCallback, object?, IAsyncResult> beginMethod, 1117Func<TArg1, TArg2, TArg3, AsyncCallback, object?, IAsyncResult> beginMethod, 1126internal static Task<TResult> FromAsyncImpl<TArg1, TArg2, TArg3>(Func<TArg1, TArg2, TArg3, AsyncCallback, object?, IAsyncResult> beginMethod,
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory.cs (4)
1082Func<TArg1, TArg2, TArg3, AsyncCallback, object?, IAsyncResult> beginMethod, 1125Func<TArg1, TArg2, TArg3, AsyncCallback, object?, IAsyncResult> beginMethod, 1451Func<TArg1, TArg2, TArg3, AsyncCallback, object?, IAsyncResult> beginMethod, 1495Func<TArg1, TArg2, TArg3, AsyncCallback, object?, IAsyncResult> beginMethod,
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
205[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Func<,,,,,>))]
System.Xaml.Tests (1)
Common\Optional.cs (1)
24public readonly T Or<TArg1, TArg2, TArg3, TArg4, TArg5>(Func<TArg1, TArg2, TArg3, TArg4, TArg5, T> valueFactory, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5) => HasValue ? Value : valueFactory(arg1, arg2, arg3, arg4, arg5);