@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
25 lines (23 loc) • 831 B
JavaScript
import { RpcSubjectServer } from '../rpc-subject-server';
import { RpcShellNavigateKey } from './rpc-shell-navigate-model';
/**
* The class to implement shell navigate with Subject server.
*/
export class RpcShellNavigateSubjectServer extends RpcSubjectServer {
/**
* Initializes a new instance of the RpcShellNavigateSubjectServer class.
*/
constructor(rpc) {
super(rpc, RpcShellNavigateKey.command);
}
/**
* The handler to respond a request for shell navigate call.
*
* @param data The shell navigate object.
* @return Promise<RpcShellNavigateResult> the promise object of shell navigate result.
*/
handler(data) {
return this.processNextForSubject(RpcShellNavigateKey.command, data);
}
}
//# sourceMappingURL=rpc-shell-navigate-subject-server.js.map