Show / Hide Table of Contents

Class AutofacHelper

Helper class for Autofac.

Inheritance
System.Object
AutofacHelper
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Composition.Autofac
Assembly: Kephas.Composition.Autofac.dll
Syntax
public static class AutofacHelper

Methods

| Improve this Doc View Source

GetLifetimeScope(IComponentContext)

Gets the lifetime scope from a component context.

Declaration
public static ILifetimeScope GetLifetimeScope(this IComponentContext c)
Parameters
Type Name Description
Autofac.IComponentContext c

An IComponentContext to process.

Returns
Type Description
Autofac.ILifetimeScope

The lifetime scope.

Exceptions
Type Condition
System.InvalidOperationException

Thrown when the requested operation is invalid.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX