@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
1 lines • 1.92 kB
Source Map (JSON)
{"version":3,"sources":["../../../packages/core/rpc/work-item/rpc-work-item-subject-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAkB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAEvF;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,OAAO,CAAC,YAAY,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC;CAAG;AAEpG;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,gBAAgB,CAAC,WAAW,EAAE,iBAAiB,CAAE,YAAW,kBAAkB;IACxH;;OAEG;gBACS,GAAG,EAAE,GAAG;IAIpB;;;;;OAKG;IACI,OAAO,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAGhE","file":"rpc-work-item-subject-server.d.ts","sourcesContent":["import { Subject } from 'rxjs';\r\nimport { DeferredData, Rpc } from '../rpc';\r\nimport { RpcSubjectServer } from '../rpc-subject-server';\r\nimport { RpcWorkItemHandler } from './rpc-work-item-handler';\r\nimport { RpcWorkItem, RpcWorkItemKey, RpcWorkItemResult } from './rpc-work-item-model';\r\n\r\n/**\r\n * Rpc work item subject interface.\r\n */\r\nexport interface RpcWorkItemSubject extends Subject<DeferredData<RpcWorkItem, RpcWorkItemResult>> {}\r\n\r\n/**\r\n * The class to implement Rpc work item with Subject server.\r\n */\r\nexport class RpcWorkItemSubjectServer extends RpcSubjectServer<RpcWorkItem, RpcWorkItemResult> implements RpcWorkItemHandler {\r\n /**\r\n * Initializes a new instance of the RpcWorkItemSubjectServer class.\r\n */\r\n constructor(rpc: Rpc) {\r\n super(rpc, RpcWorkItemKey.command);\r\n }\r\n\r\n /**\r\n * The handler to respond a request for RpcLog call.\r\n *\r\n * @param data The RPC log record object.\r\n * @returns return the Promise<void> object.\r\n */\r\n public handler(data: RpcWorkItem): Promise<RpcWorkItemResult> {\r\n return this.processNextForSubject(RpcWorkItemKey.command, data);\r\n }\r\n}\r\n"]}