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