ParentServiceProvider Class
Namespace: PTS.DependencyInjection.Common
Assembly: PTS.DependencyInjection.dll
Default implementation of the container providing direct reference to service provider for parent scope.
Syntax
public class ParentServiceProvider : IParentServiceProvider
Inheritance
System.Object
ParentServiceProvider
Implements
Remarks
Used for upward scope traversal.
Constructors
ParentServiceProvider(IServiceProvider)
Initializes a new instance of the ParentServiceProvider class.
Declaration
public ParentServiceProvider(IServiceProvider provider)
Parameters
Type | Name | Description |
---|---|---|
System.IServiceProvider | provider | Service provider to be available in nested scope. |
Properties
Provider
Service provider in parent scope.
Declaration
public IServiceProvider Provider { get; }
Property Value
Type | Description |
---|---|
System.IServiceProvider |
Implements
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()