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