1 instantiation of CompositionOperation
System.Composition.Hosting (1)
System\Composition\Hosting\Core\CompositionOperation.cs (1)
42
using (var operation = new
CompositionOperation
())
16 references to CompositionOperation
System.Composition.Hosting (10)
System\Composition\Hosting\Core\CompositeActivator.cs (1)
13
public delegate object CompositeActivator(LifetimeContext context,
CompositionOperation
operation);
System\Composition\Hosting\Core\CompositionOperation.cs (1)
42
using (
var
operation = new CompositionOperation())
System\Composition\Hosting\Core\CycleBreakingExportDescriptor.cs (1)
40
private object Activate(LifetimeContext context,
CompositionOperation
operation)
System\Composition\Hosting\Core\LifetimeContext.cs (3)
14
/// instances either as part of an existing <see cref="
CompositionOperation
"/> or as the basis of a new
152
public object GetOrCreate(int sharingId,
CompositionOperation
operation, CompositeActivator creator)
204
export =
CompositionOperation
.Run(this, defaultForExport.Activator);
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryExportDescriptorProvider.cs (1)
54
return Tuple.Create<TProduct, Action>((TProduct)
CompositionOperation
.Run(lifetimeContext, da), lifetimeContext.Dispose);
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryWithMetadataExportDescriptorProvider.cs (1)
58
return Tuple.Create<TProduct, Action>((TProduct)
CompositionOperation
.Run(lifetimeContext, dsc.Activator), lifetimeContext.Dispose);
System\Composition\Hosting\Providers\Lazy\LazyExportDescriptorProvider.cs (1)
39
return ExportDescriptor.Create((c, o) => new Lazy<TValue>(() => (TValue)
CompositionOperation
.Run(c, da)), dsc.Metadata);
System\Composition\Hosting\Providers\Lazy\LazyWithMetadataExportDescriptorProvider.cs (1)
44
return new Lazy<TValue, TMetadata>(() => (TValue)
CompositionOperation
.Run(c, da), metadataProvider(dsc.Metadata));
System.Composition.TypedParts (6)
System\Composition\TypedParts\ActivationFeatures\LifetimeFeature.cs (1)
40
return
CompositionOperation
.Run(scope, (c1, o1) => c1.GetOrCreate(sharingKey, o1, activatorBody));
System\Composition\TypedParts\ActivationFeatures\PropertyInjectionFeature.cs (2)
75
var op = Expression.Parameter(typeof(
CompositionOperation
));
103
var setAction = Expression.Lambda<Func<object, LifetimeContext,
CompositionOperation
, object>>(
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (1)
169
var operationParm = Expression.Parameter(typeof(
CompositionOperation
), "op");
System\Composition\TypedParts\Discovery\DiscoveredPropertyExport.cs (2)
13
private static readonly MethodInfo s_activatorInvoke = typeof(CompositeActivator).GetRuntimeMethod("Invoke", new[] { typeof(LifetimeContext), typeof(
CompositionOperation
) });
25
var args = new[] { Expression.Parameter(typeof(LifetimeContext)), Expression.Parameter(typeof(
CompositionOperation
)) };