@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
21 lines (19 loc) • 956 B
JavaScript
import { RpcInboundClient } from '../rpc-inbound-client';
import { RpcOutboundClient } from '../rpc-outbound-client';
import { RpcExtensionBrokerResponseKey } from './rpc-extension-broker-model';
export class RpcExtensionBrokerResponseClient {
static extensionBrokerResponse(rpc, data, outbound) {
if (rpc.isShell) {
if (outbound) {
return RpcOutboundClient.callOutbound(rpc.rpcManager.rpcChannel, outbound, RpcExtensionBrokerResponseKey.command, RpcExtensionBrokerResponseKey.version, data);
}
else {
return RpcOutboundClient.call(rpc, RpcExtensionBrokerResponseKey.command, RpcExtensionBrokerResponseKey.version, data);
}
}
else {
return RpcInboundClient.call(rpc, RpcExtensionBrokerResponseKey.command, RpcExtensionBrokerResponseKey.version, data);
}
}
}
//# sourceMappingURL=rpc-extension-broker-response-client.js.map