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