@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
1 lines • 1.87 kB
Source Map (JSON)
{"version":3,"sources":["../../../packages/core/rpc/azure/rpc-azure-response-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EAAE,uBAAuB,EAAuB,MAAM,mBAAmB,CAAC;AAEjF,qBAAa,sBAAsB;IAC/B;;;;;;;OAOG;WACW,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;WACrE,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,uBAAuB,EAAE,QAAQ,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAc9G","file":"rpc-azure-response-client.d.ts","sourcesContent":["import { Rpc } from '../rpc';\r\nimport { RpcOutbound } from '../rpc-outbound';\r\nimport { RpcOutboundClient } from '../rpc-outbound-client';\r\nimport { RpcAzureOperationResult, RpcAzureResponseKey } from './rpc-azure-model';\r\n\r\nexport class RpcAzureResponseClient {\r\n /**\r\n * The Rpc Azure 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 azureResponse(rpc: Rpc, data: RpcAzureOperationResult): Promise<void>;\r\n public static azureResponse(rpc: Rpc, data: RpcAzureOperationResult, outbound?: RpcOutbound): Promise<void>;\r\n public static azureResponse(rpc: Rpc, data: RpcAzureOperationResult, outbound?: RpcOutbound): Promise<void> {\r\n if (outbound) {\r\n return RpcOutboundClient.callOutbound(\r\n rpc.rpcManager.rpcChannel,\r\n outbound,\r\n RpcAzureResponseKey.command,\r\n RpcAzureResponseKey.version,\r\n data\r\n );\r\n } else {\r\n return RpcOutboundClient.call(rpc, RpcAzureResponseKey.command, RpcAzureResponseKey.version, data);\r\n }\r\n }\r\n}\r\n"]}