public class ServiceCollectionServiceExtensions extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: Microsoft.Extensions.DependencyInjection.Abstractions, Version=11.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
|
static java.lang.String |
assemblyShortName
Assembly name: Microsoft.Extensions.DependencyInjection.Abstractions
|
static java.lang.String |
className
Qualified class name: Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
ServiceCollectionServiceExtensions() |
ServiceCollectionServiceExtensions(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> |
AddKeyedScoped(IServiceCollection services,
NetObject serviceKey)
Invokes the .NET member AddKeyedScoped.
|
static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> |
AddKeyedScoped(IServiceCollection services,
NetObject serviceKey,
Func_3 implementationFactory)
Invokes the .NET member AddKeyedScoped.
|
static IServiceCollection |
AddKeyedScoped(IServiceCollection services,
NetType serviceType,
NetObject serviceKey)
Invokes the .NET member AddKeyedScoped.
|
static IServiceCollection |
AddKeyedScoped(IServiceCollection services,
NetType serviceType,
NetObject serviceKey,
Func_3 implementationFactory)
Invokes the .NET member AddKeyedScoped.
|
static IServiceCollection |
AddKeyedScoped(IServiceCollection services,
NetType serviceType,
NetObject serviceKey,
NetType implementationType)
Invokes the .NET member AddKeyedScoped.
|
static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> |
AddKeyedSingleton(IServiceCollection services,
NetObject serviceKey)
Invokes the .NET member AddKeyedSingleton.
|
static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> |
AddKeyedSingleton(IServiceCollection services,
NetObject serviceKey,
Func_3 implementationFactory)
Invokes the .NET member AddKeyedSingleton.
|
static <TService extends IJCOBridgeReflected> |
AddKeyedSingleton(IServiceCollection services,
NetObject serviceKey,
TService implementationInstance)
Invokes the .NET member AddKeyedSingleton.
|
static IServiceCollection |
AddKeyedSingleton(IServiceCollection services,
NetType serviceType,
NetObject serviceKey)
Invokes the .NET member AddKeyedSingleton.
|
static IServiceCollection |
AddKeyedSingleton(IServiceCollection services,
NetType serviceType,
NetObject serviceKey,
Func_3 implementationFactory)
Invokes the .NET member AddKeyedSingleton.
|
static IServiceCollection |
AddKeyedSingleton(IServiceCollection services,
NetType serviceType,
NetObject serviceKey,
NetObject implementationInstance)
Invokes the .NET member AddKeyedSingleton.
|
static IServiceCollection |
AddKeyedSingleton(IServiceCollection services,
NetType serviceType,
NetObject serviceKey,
NetType implementationType)
Invokes the .NET member AddKeyedSingleton.
|
static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> |
AddKeyedTransient(IServiceCollection services,
NetObject serviceKey)
Invokes the .NET member AddKeyedTransient.
|
static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> |
AddKeyedTransient(IServiceCollection services,
NetObject serviceKey,
Func_3 implementationFactory)
Invokes the .NET member AddKeyedTransient.
|
static IServiceCollection |
AddKeyedTransient(IServiceCollection services,
NetType serviceType,
NetObject serviceKey)
Invokes the .NET member AddKeyedTransient.
|
static IServiceCollection |
AddKeyedTransient(IServiceCollection services,
NetType serviceType,
NetObject serviceKey,
Func_3 implementationFactory)
Invokes the .NET member AddKeyedTransient.
|
static IServiceCollection |
AddKeyedTransient(IServiceCollection services,
NetType serviceType,
NetObject serviceKey,
NetType implementationType)
Invokes the .NET member AddKeyedTransient.
|
static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> |
AddScoped(IServiceCollection services)
Invokes the .NET member AddScoped.
|
static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> |
AddScoped(IServiceCollection services,
Func_2 implementationFactory)
Invokes the .NET member AddScoped.
|
static IServiceCollection |
AddScoped(IServiceCollection services,
NetType serviceType)
Invokes the .NET member AddScoped.
|
static IServiceCollection |
AddScoped(IServiceCollection services,
NetType serviceType,
Func_2 implementationFactory)
Invokes the .NET member AddScoped.
|
static IServiceCollection |
AddScoped(IServiceCollection services,
NetType serviceType,
NetType implementationType)
Invokes the .NET member AddScoped.
|
static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> |
AddSingleton(IServiceCollection services)
Invokes the .NET member AddSingleton.
|
static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> |
AddSingleton(IServiceCollection services,
Func_2 implementationFactory)
Invokes the .NET member AddSingleton.
|
static IServiceCollection |
AddSingleton(IServiceCollection services,
NetType serviceType)
Invokes the .NET member AddSingleton.
|
static IServiceCollection |
AddSingleton(IServiceCollection services,
NetType serviceType,
Func_2 implementationFactory)
Invokes the .NET member AddSingleton.
|
static IServiceCollection |
AddSingleton(IServiceCollection services,
NetType serviceType,
NetObject implementationInstance)
Invokes the .NET member AddSingleton.
|
static IServiceCollection |
AddSingleton(IServiceCollection services,
NetType serviceType,
NetType implementationType)
Invokes the .NET member AddSingleton.
|
static <TService extends IJCOBridgeReflected> |
AddSingleton(IServiceCollection services,
TService implementationInstance)
Invokes the .NET member AddSingleton.
|
static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> |
AddTransient(IServiceCollection services)
Invokes the .NET member AddTransient.
|
static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> |
AddTransient(IServiceCollection services,
Func_2 implementationFactory)
Invokes the .NET member AddTransient.
|
static IServiceCollection |
AddTransient(IServiceCollection services,
NetType serviceType)
Invokes the .NET member AddTransient.
|
static IServiceCollection |
AddTransient(IServiceCollection services,
NetType serviceType,
Func_2 implementationFactory)
Invokes the .NET member AddTransient.
|
static IServiceCollection |
AddTransient(IServiceCollection services,
NetType serviceType,
NetType implementationType)
Invokes the .NET member AddTransient.
|
static ServiceCollectionServiceExtensions |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into ServiceCollectionServiceExtensions, a cast assert is made to check if types are compatible. |
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public ServiceCollectionServiceExtensions()
throws java.lang.Throwable
java.lang.Throwablepublic ServiceCollectionServiceExtensions(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> IServiceCollection AddKeyedScoped(IServiceCollection services, NetObject serviceKey) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
TService - the type of the generic argument TServiceTImplementation - the type of the generic argument TImplementationservices - the argument of type IServiceCollectionserviceKey - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> IServiceCollection AddKeyedScoped(IServiceCollection services, NetObject serviceKey, Func_3 implementationFactory) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
TService - the type of the generic argument TServiceTImplementation - the type of the generic argument TImplementationservices - the argument of type IServiceCollectionserviceKey - the argument of type NetObjectimplementationFactory - the argument of type Func_3java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static IServiceCollection AddKeyedScoped(IServiceCollection services, NetType serviceType, NetObject serviceKey) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
services - the argument of type IServiceCollectionserviceType - the argument of type NetTypeserviceKey - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static IServiceCollection AddKeyedScoped(IServiceCollection services, NetType serviceType, NetObject serviceKey, Func_3 implementationFactory) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
services - the argument of type IServiceCollectionserviceType - the argument of type NetTypeserviceKey - the argument of type NetObjectimplementationFactory - the argument of type Func_3java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static IServiceCollection AddKeyedScoped(IServiceCollection services, NetType serviceType, NetObject serviceKey, NetType implementationType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
services - the argument of type IServiceCollectionserviceType - the argument of type NetTypeserviceKey - the argument of type NetObjectimplementationType - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> IServiceCollection AddKeyedSingleton(IServiceCollection services, NetObject serviceKey) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
TService - the type of the generic argument TServiceTImplementation - the type of the generic argument TImplementationservices - the argument of type IServiceCollectionserviceKey - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> IServiceCollection AddKeyedSingleton(IServiceCollection services, NetObject serviceKey, Func_3 implementationFactory) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
TService - the type of the generic argument TServiceTImplementation - the type of the generic argument TImplementationservices - the argument of type IServiceCollectionserviceKey - the argument of type NetObjectimplementationFactory - the argument of type Func_3java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static <TService extends IJCOBridgeReflected> IServiceCollection AddKeyedSingleton(IServiceCollection services, NetObject serviceKey, TService implementationInstance) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
TService - the type of the generic argument TServiceservices - the argument of type IServiceCollectionserviceKey - the argument of type NetObjectimplementationInstance - the argument of type TServicejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static IServiceCollection AddKeyedSingleton(IServiceCollection services, NetType serviceType, NetObject serviceKey) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
services - the argument of type IServiceCollectionserviceType - the argument of type NetTypeserviceKey - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static IServiceCollection AddKeyedSingleton(IServiceCollection services, NetType serviceType, NetObject serviceKey, Func_3 implementationFactory) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
services - the argument of type IServiceCollectionserviceType - the argument of type NetTypeserviceKey - the argument of type NetObjectimplementationFactory - the argument of type Func_3java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static IServiceCollection AddKeyedSingleton(IServiceCollection services, NetType serviceType, NetObject serviceKey, NetObject implementationInstance) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
services - the argument of type IServiceCollectionserviceType - the argument of type NetTypeserviceKey - the argument of type NetObjectimplementationInstance - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static IServiceCollection AddKeyedSingleton(IServiceCollection services, NetType serviceType, NetObject serviceKey, NetType implementationType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
services - the argument of type IServiceCollectionserviceType - the argument of type NetTypeserviceKey - the argument of type NetObjectimplementationType - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> IServiceCollection AddKeyedTransient(IServiceCollection services, NetObject serviceKey) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
TService - the type of the generic argument TServiceTImplementation - the type of the generic argument TImplementationservices - the argument of type IServiceCollectionserviceKey - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> IServiceCollection AddKeyedTransient(IServiceCollection services, NetObject serviceKey, Func_3 implementationFactory) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
TService - the type of the generic argument TServiceTImplementation - the type of the generic argument TImplementationservices - the argument of type IServiceCollectionserviceKey - the argument of type NetObjectimplementationFactory - the argument of type Func_3java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static IServiceCollection AddKeyedTransient(IServiceCollection services, NetType serviceType, NetObject serviceKey) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
services - the argument of type IServiceCollectionserviceType - the argument of type NetTypeserviceKey - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static IServiceCollection AddKeyedTransient(IServiceCollection services, NetType serviceType, NetObject serviceKey, Func_3 implementationFactory) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
services - the argument of type IServiceCollectionserviceType - the argument of type NetTypeserviceKey - the argument of type NetObjectimplementationFactory - the argument of type Func_3java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static IServiceCollection AddKeyedTransient(IServiceCollection services, NetType serviceType, NetObject serviceKey, NetType implementationType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
services - the argument of type IServiceCollectionserviceType - the argument of type NetTypeserviceKey - the argument of type NetObjectimplementationType - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> IServiceCollection AddScoped(IServiceCollection services) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
TService - the type of the generic argument TServiceTImplementation - the type of the generic argument TImplementationservices - the argument of type IServiceCollectionjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> IServiceCollection AddScoped(IServiceCollection services, Func_2 implementationFactory) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
TService - the type of the generic argument TServiceTImplementation - the type of the generic argument TImplementationservices - the argument of type IServiceCollectionimplementationFactory - the argument of type Func_2java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static IServiceCollection AddScoped(IServiceCollection services, NetType serviceType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
services - the argument of type IServiceCollectionserviceType - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static IServiceCollection AddScoped(IServiceCollection services, NetType serviceType, Func_2 implementationFactory) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
services - the argument of type IServiceCollectionserviceType - the argument of type NetTypeimplementationFactory - the argument of type Func_2java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static IServiceCollection AddScoped(IServiceCollection services, NetType serviceType, NetType implementationType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
services - the argument of type IServiceCollectionserviceType - the argument of type NetTypeimplementationType - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> IServiceCollection AddSingleton(IServiceCollection services) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
TService - the type of the generic argument TServiceTImplementation - the type of the generic argument TImplementationservices - the argument of type IServiceCollectionjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> IServiceCollection AddSingleton(IServiceCollection services, Func_2 implementationFactory) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
TService - the type of the generic argument TServiceTImplementation - the type of the generic argument TImplementationservices - the argument of type IServiceCollectionimplementationFactory - the argument of type Func_2java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static IServiceCollection AddSingleton(IServiceCollection services, NetType serviceType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
services - the argument of type IServiceCollectionserviceType - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static IServiceCollection AddSingleton(IServiceCollection services, NetType serviceType, Func_2 implementationFactory) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
services - the argument of type IServiceCollectionserviceType - the argument of type NetTypeimplementationFactory - the argument of type Func_2java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static IServiceCollection AddSingleton(IServiceCollection services, NetType serviceType, NetObject implementationInstance) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
services - the argument of type IServiceCollectionserviceType - the argument of type NetTypeimplementationInstance - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static IServiceCollection AddSingleton(IServiceCollection services, NetType serviceType, NetType implementationType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
services - the argument of type IServiceCollectionserviceType - the argument of type NetTypeimplementationType - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static <TService extends IJCOBridgeReflected> IServiceCollection AddSingleton(IServiceCollection services, TService implementationInstance) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
TService - the type of the generic argument TServiceservices - the argument of type IServiceCollectionimplementationInstance - the argument of type TServicejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> IServiceCollection AddTransient(IServiceCollection services) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
TService - the type of the generic argument TServiceTImplementation - the type of the generic argument TImplementationservices - the argument of type IServiceCollectionjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> IServiceCollection AddTransient(IServiceCollection services, Func_2 implementationFactory) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
TService - the type of the generic argument TServiceTImplementation - the type of the generic argument TImplementationservices - the argument of type IServiceCollectionimplementationFactory - the argument of type Func_2java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static IServiceCollection AddTransient(IServiceCollection services, NetType serviceType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
services - the argument of type IServiceCollectionserviceType - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static IServiceCollection AddTransient(IServiceCollection services, NetType serviceType, Func_2 implementationFactory) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
services - the argument of type IServiceCollectionserviceType - the argument of type NetTypeimplementationFactory - the argument of type Func_2java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static IServiceCollection AddTransient(IServiceCollection services, NetType serviceType, NetType implementationType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
services - the argument of type IServiceCollectionserviceType - the argument of type NetTypeimplementationType - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static ServiceCollectionServiceExtensions cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into ServiceCollectionServiceExtensions, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedServiceCollectionServiceExtensions instancejava.lang.Throwable - in case of error during cast operationpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying object