C# Class Revenj.Extensibility.Autofac.Core.Lifetime.MatchingScopeLifetime

Attaches the component's lifetime to scopes matching a supplied expression.
Inheritance: IComponentLifetime
Datei anzeigen Open project: ngs-doo/revenj

Public Methods

Method Description
FindScope ( ISharingLifetimeScope mostNestedVisibleScope ) : ISharingLifetimeScope

Given the most nested scope visible within the resolve operation, find the scope for the component.

MatchingScopeLifetime ( bool>.Expression matchExpression ) : System

Match scopes based on the provided expression.

MatchingScopeLifetime ( bool>.Func matchExpression ) : System

Match scopes based on the provided expression.

MatchingScopeLifetime ( object lifetimeScopeTagToMatch ) : System

Match scopes by comparing tags for equality.

Method Details

FindScope() public method

Given the most nested scope visible within the resolve operation, find the scope for the component.
public FindScope ( ISharingLifetimeScope mostNestedVisibleScope ) : ISharingLifetimeScope
mostNestedVisibleScope ISharingLifetimeScope The most nested visible scope.
return ISharingLifetimeScope

MatchingScopeLifetime() public method

Match scopes based on the provided expression.
public MatchingScopeLifetime ( bool>.Expression matchExpression ) : System
matchExpression bool>.Expression Expression describing scopes that will match.
return System

MatchingScopeLifetime() public method

Match scopes based on the provided expression.
public MatchingScopeLifetime ( bool>.Func matchExpression ) : System
matchExpression bool>.Func Expression describing scopes that will match.
return System

MatchingScopeLifetime() public method

Match scopes by comparing tags for equality.
public MatchingScopeLifetime ( object lifetimeScopeTagToMatch ) : System
lifetimeScopeTagToMatch object The tag applied to matching scopes.
return System