31 references to ContractType
Microsoft.AspNetCore.App.Analyzers.Test (1)
RouteEmbeddedLanguage\Infrastructure\ExportProviderExtensions.cs (1)
35var (contractType, metadataType) = GetContractType(contract.ContractType, importMany);
Microsoft.DotNet.AsmDiff (2)
MefHelpers.cs (2)
41if (contract.ContractType != _contractType || 48var constrainedSubset = new CompositionContract(contract.ContractType, contract.ContractName,
System.Composition.Hosting (18)
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryExportDescriptorProvider.cs (3)
18if (!exportKey.ContractType.IsConstructedGenericType || exportKey.ContractType.GetGenericTypeDefinition() != typeof(ExportFactory<>)) 21var gld = s_getExportFactoryDefinitionsMethod.MakeGenericMethod(exportKey.ContractType.GenericTypeArguments[0]);
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryWithMetadataExportDescriptorProvider.cs (3)
20if (!contract.ContractType.IsConstructedGenericType || contract.ContractType.GetGenericTypeDefinition() != typeof(ExportFactory<,>)) 23var ga = contract.ContractType.GenericTypeArguments;
System\Composition\Hosting\Providers\ImportMany\ImportManyExportDescriptorProvider.cs (6)
19if (!(contract.ContractType.IsArray || 20contract.ContractType.IsConstructedGenericType && s_supportedContractTypes.Contains(contract.ContractType.GetGenericTypeDefinition()))) 28var elementType = contract.ContractType.IsArray ? 29contract.ContractType.GetElementType() : 30contract.ContractType.GenericTypeArguments[0];
System\Composition\Hosting\Providers\Lazy\LazyExportDescriptorProvider.cs (3)
19if (!exportKey.ContractType.IsConstructedGenericType || exportKey.ContractType.GetGenericTypeDefinition() != typeof(Lazy<>)) 22var gld = s_getLazyDefinitionsMethod.MakeGenericMethod(exportKey.ContractType.GenericTypeArguments[0]);
System\Composition\Hosting\Providers\Lazy\LazyWithMetadataExportDescriptorProvider.cs (3)
19if (!exportKey.ContractType.IsConstructedGenericType || exportKey.ContractType.GetGenericTypeDefinition() != typeof(Lazy<,>)) 22var ga = exportKey.ContractType.GenericTypeArguments;
System.Composition.TypedParts (10)
System\Composition\Hosting\SinglePartExportDescriptorProvider.cs (2)
24if (contract.ContractType != _contractType || 31var constrainedSubset = new CompositionContract(contract.ContractType, contract.ContractName,
System\Composition\TypedParts\ContractHelpers.cs (1)
89importedContract = new CompositionContract(importedContract.ContractType, importedContract.ContractName, importMetadata);
System\Composition\TypedParts\Discovery\DiscoveredInstanceExport.cs (1)
24var closedContractType = Contract.ContractType.MakeGenericType(genericArguments);
System\Composition\TypedParts\Discovery\DiscoveredPropertyExport.cs (1)
38var closedContractType = Contract.ContractType.MakeGenericType(genericArguments);
System\Composition\TypedParts\TypedPartExportDescriptorProvider.cs (5)
81var unconstrained = new CompositionContract(contract.ContractType, contract.ContractName); 92var constrainedSubset = new CompositionContract(unconstrained.ContractType, unconstrained.ContractName, subsettedConstraints); 106if (!contract.ContractType.IsConstructedGenericType) 109var gtd = contract.ContractType.GetGenericTypeDefinition(); 115var typeArguments = contract.ContractType.GenericTypeArguments;