public void InitializeExtension(ExtensionContext context)
        {
            if(context == null)
            {
                throw new ArgumentNullException("context");
            }

            container = context.Container;
            this.context = context;
            Initialize();
        }
        public void InitializeExtension(ExtensionContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            this.container = context.Container;
            this.context   = context;
            Initialize();
        }
 /// <summary>
 ///   Create a new <see cref = "LifetimeManagerFactory" /> that will
 ///   return instances of the given type, creating them by
 ///   resolving through the container.
 /// </summary>
 /// <param name = "containerContext">Container to resolve with.</param>
 /// <param name = "lifetimeType">Type of LifetimeManager to create.</param>
 public LifetimeManagerFactory(ExtensionContext containerContext, Type lifetimeType)
 {
     this.containerContext = containerContext;
     LifetimeType = lifetimeType;
 }
 /// <summary>
 /// Construct a new <see cref="ChildContainerCreatedEventArgs"/> object with the
 /// given child container object.
 /// </summary>
 /// <param name="childContext">An <see cref="ExtensionContext"/> for the newly created child
 /// container.</param>
 public ChildContainerCreatedEventArgs(ExtensionContext childContext)
 {
     ChildContext = childContext;
 }
Ejemplo n.º 5
0
 public WorkflowBuildStrategy(ExtensionContext baseContext)
 {
     _container = baseContext.Container;
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Construct a new <see cref="ChildContainerCreatedEventArgs"/> object with the
 /// given child container object.
 /// </summary>
 /// <param name="childContext">An <see cref="ExtensionContext"/> for the newly created child
 /// container.</param>
 public ChildContainerCreatedEventArgs(ExtensionContext childContext)
 {
     ChildContext = childContext;
 }
 /// <summary>
 /// Create a new <see cref="LifetimeManagerFactory"/> that will
 /// return instances of the given type, creating them by
 /// resolving through the container.
 /// </summary>
 /// <param name="containerContext">Container to resolve with.</param>
 /// <param name="lifetimeType">Type of LifetimeManager to create.</param>
 public LifetimeManagerFactory(ExtensionContext containerContext, Type lifetimeType)
 {
     this.containerContext = containerContext;
     this.lifetimeType     = lifetimeType;
 }