@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
1 lines • 1.93 kB
Source Map (JSON)
{"version":3,"sources":["../../../packages/core/rpc/electron/rpc-electron-response-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EAAE,0BAA0B,EAA0B,MAAM,sBAAsB,CAAC;AAE1F,qBAAa,yBAAyB;IAClC;;;;;;;OAOG;WACW,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,0BAA0B,GAAG,OAAO,CAAC,IAAI,CAAC;WAC3E,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,0BAA0B,EAAE,QAAQ,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAcpH","file":"rpc-electron-response-client.d.ts","sourcesContent":["import { Rpc } from '../rpc';\r\nimport { RpcOutbound } from '../rpc-outbound';\r\nimport { RpcOutboundClient } from '../rpc-outbound-client';\r\nimport { RpcElectronOperationResult, RpcElectronResponseKey } from './rpc-electron-model';\r\n\r\nexport class RpcElectronResponseClient {\r\n /**\r\n * The Rpc Electron response command.\r\n *\r\n * @param rpc the rpc service.\r\n * @param data the azure operation result object.\r\n * @param outbound the outbound channel to call. @optional\r\n * @return Promise<void> the promise object.\r\n */\r\n public static electronResponse(rpc: Rpc, data: RpcElectronOperationResult): Promise<void>;\r\n public static electronResponse(rpc: Rpc, data: RpcElectronOperationResult, outbound?: RpcOutbound): Promise<void>;\r\n public static electronResponse(rpc: Rpc, data: RpcElectronOperationResult, outbound?: RpcOutbound): Promise<void> {\r\n if (outbound) {\r\n return RpcOutboundClient.callOutbound(\r\n rpc.rpcManager.rpcChannel,\r\n outbound,\r\n RpcElectronResponseKey.command,\r\n RpcElectronResponseKey.version,\r\n data\r\n );\r\n } else {\r\n return RpcOutboundClient.call(rpc, RpcElectronResponseKey.command, RpcElectronResponseKey.version, data);\r\n }\r\n }\r\n}\r\n"]}