Show / Hide Table of Contents

Class AppServiceInfoExtensions

Extension methods for IAppServiceInfo.

Inheritance
System.Object
AppServiceInfoExtensions
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.Services.Reflection
Assembly: Kephas.Core.dll
Syntax
public static class AppServiceInfoExtensions

Methods

| Improve this Doc View Source

IsScoped(IAppServiceInfo)

Gets a value indicating whether the application service is shared within a scope.

Declaration
public static bool IsScoped(this IAppServiceInfo appServiceInfo)
Parameters
Type Name Description
IAppServiceInfo appServiceInfo

The application service contract information.

Returns
Type Description
System.Boolean

true if shared within a scope; otherwise, false.

| Improve this Doc View Source

IsSingleton(IAppServiceInfo)

Gets a value indicating whether the application service is shared.

Declaration
public static bool IsSingleton(this IAppServiceInfo appServiceInfo)
Parameters
Type Name Description
IAppServiceInfo appServiceInfo

The application service contract information.

Returns
Type Description
System.Boolean

true if shared; otherwise, false.

| Improve this Doc View Source

IsTransient(IAppServiceInfo)

Gets a value indicating whether the application service is instanced per request.

Declaration
public static bool IsTransient(this IAppServiceInfo appServiceInfo)
Parameters
Type Name Description
IAppServiceInfo appServiceInfo

The application service contract information.

Returns
Type Description
System.Boolean

true if instanced per request; otherwise, false.

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