Version: NextTypedResourceManager <Resource, ResourceInitializeConfig, ResourceProviderType>
Constructors
- new TypedResourceManager<Resource, ResourceInitializeConfig, ResourceProviderType>(typedResourceInitializerOptions: { initializeClzProvider: {}; initializeValue: {}; resourceBinding: (ClzProvider: ClassType<ResourceProviderType>, resourceInitializeConfig: ResourceInitializeConfig, resource: Resource, resourceName: string) => Promise<any>; resourceDestroy: (resource: Resource, resourceInitializeConfig: ResourceInitializeConfig) => Promise<void>; resourceInitialize: (resourceInitializeConfig: ResourceInitializeConfig, resourceName: string) => Promise<Resource>; resourceStart: (resource: Resource, resourceInitializeConfig: ResourceInitializeConfig, resourceBindingResult?: any) => Promise<void> }): TypedResourceManager<Resource, ResourceInitializeConfig, ResourceProviderType>
Type parameters
- Resource = any
- ResourceInitializeConfig = any
- ResourceProviderType = any
Methods
- createResource(resourceName: string, resourceInitializeConfig: ResourceInitializeConfig): Promise<Resource>
- destroyParallel(): Promise<void>
- getResource(resourceName: string): any
- startParallel(): Promise<void>