@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
102 lines (101 loc) • 5.03 kB
TypeScript
import { AppContext } from '@microsoft/windows-admin-center-sdk/core/data/app-context';
import { DialogService } from '../controls/dialog/dialog.service';
import { ActiveConnectionService } from './active-connection.service';
import { AuthorizationService } from './authorization.service';
import { AzureManagerService } from './azure-manager.service';
import { CimStreamService } from './cim-stream.service';
import { CimService } from './cim.service';
import { ConnectionService } from './connection.service';
import { CredSSPManagerService } from './credssp-manager.service';
import { FileTransferService } from './file-transfer.service';
import { FrameService } from './frame.service';
import { GatewayService } from './gateway.service';
import { NavigationService, NavigatorServiceOptions } from './navigation.service';
import { NodeService } from './node.service';
import { NotificationService } from './notification.service';
import { PowerShellStreamService } from './powershell-stream.service';
import { PowerShellService } from './powershell.service';
import { ResourceService } from './resource.service';
import { RpcService } from './rpc.service';
import { SettingsService } from './settings.service';
import { SshStreamService } from './ssh-stream.service';
import { WorkItemService } from './work-item.service';
import * as i0 from "@angular/core";
/**
* The initialization context to AppModule.
*/
export interface AppModuleInitialization {
/**
* The svg resource to register.
*/
svgResource?: any;
}
/**
* The initialization context to AppComponent.
*/
export interface AppComponentInitialization {
/**
* The dialog service.
*/
dialogService?: DialogService;
/**
* The navigation service instance.
*/
navigationService?: NavigationService;
/**
* The options for navigation service.
*/
navigatorServiceOptions?: NavigatorServiceOptions;
}
export declare class AppContextService extends AppContext {
private internalResourceService;
private internalAuthorizationService;
private internalNavigationService;
/**
* Initializes a new instance of the AppContextService class.
*
* @param activeConnectionService the active connection service.
* @param authorizationService the authorization service.
* @param cimService the cim service.
* @param cimStreamService the cim stream service.
* @param connectionService the connection service.
* @param fileTransferService the file transfer service.
* @param frameService the frame of window and dialog service.
* @param gatewayService the gateway service.
* @param nodeService the node service.
* @param notificationService the notification service.
* @param powerShellService the powerShell service.
* @param powerShellStreamService the powerShell stream service.
* @param resourceService the resource service.
* @param rpcService the Rpc service.
* @param settingsService the settingsService service.
* @param sshStreamService the SSH stream service.
* @param workItemService the work item service.
*/
constructor(activeConnectionService: ActiveConnectionService, authorizationService: AuthorizationService, azureManagerService: AzureManagerService, cimService: CimService, cimStreamService: CimStreamService, connectionService: ConnectionService, credSSPManagerService: CredSSPManagerService, fileTransferService: FileTransferService, frameService: FrameService, gatewayService: GatewayService, nodeService: NodeService, notificationService: NotificationService, powerShellService: PowerShellService, powerShellStreamService: PowerShellStreamService, resourceService: ResourceService, rpcService: RpcService, settingsService: SettingsService, sshStreamService: SshStreamService, workItemService: WorkItemService);
/**
* Initialize the app context resource from AppModule constructor.
*
* @param options the app module initialization options.
*/
initializeModule(options: AppModuleInitialization): void;
/**
* Register dialog service with dialog id in navigation service
* @param dialogService dialog service to be registered
* @param dialogId dialog id associated
*/
registerDialogService(dialogService: DialogService, dialogId: string): void;
/**
* Initializes the app context resource from ngInit call in AppComponent.
* (From module side only, do not call from shell)
* @param options the App context initialization options.
*/
ngInit(options: AppComponentInitialization): void;
/**
* Destroy the app context resource from ngDestroy call in AppComponent.
* (From module side only, do not call from shell)
*/
ngDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<AppContextService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<AppContextService>;
}