backendRuntimeContext增加了clearSubscriber方法
This commit is contained in:
parent
b5d7e00828
commit
9e6d15b49a
|
|
@ -24,4 +24,8 @@ export declare abstract class BackendRuntimeContext<ED extends EntityDict & Base
|
|||
saveOperationToEvent(operationId: string, event: string): void;
|
||||
commit(): Promise<void>;
|
||||
rollback(): Promise<void>;
|
||||
/**
|
||||
* 某些特殊应用可能要手动清除subscriberId(taicang)
|
||||
*/
|
||||
clearSubscriber(): void;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,4 +55,10 @@ export class BackendRuntimeContext extends AsyncContext {
|
|||
this.eventOperationMap = {};
|
||||
return super.rollback();
|
||||
}
|
||||
/**
|
||||
* 某些特殊应用可能要手动清除subscriberId(taicang)
|
||||
*/
|
||||
clearSubscriber() {
|
||||
this.subscriberId = undefined;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -806,6 +806,9 @@ export function createComponent(option, features) {
|
|||
ready() {
|
||||
// 等oakFullpath构建完成后再ready
|
||||
if (this.state.oakFullpath) {
|
||||
if (this.props.oakId) {
|
||||
this.features.runningTree.setId(this.state.oakFullpath, this.props.oakId);
|
||||
}
|
||||
ready && ready.call(this);
|
||||
}
|
||||
else if (!this.oakOption.entity) {
|
||||
|
|
|
|||
|
|
@ -24,4 +24,8 @@ export declare abstract class BackendRuntimeContext<ED extends EntityDict & Base
|
|||
saveOperationToEvent(operationId: string, event: string): void;
|
||||
commit(): Promise<void>;
|
||||
rollback(): Promise<void>;
|
||||
/**
|
||||
* 某些特殊应用可能要手动清除subscriberId(taicang)
|
||||
*/
|
||||
clearSubscriber(): void;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,5 +59,11 @@ class BackendRuntimeContext extends AsyncRowStore_1.AsyncContext {
|
|||
this.eventOperationMap = {};
|
||||
return super.rollback();
|
||||
}
|
||||
/**
|
||||
* 某些特殊应用可能要手动清除subscriberId(taicang)
|
||||
*/
|
||||
clearSubscriber() {
|
||||
this.subscriberId = undefined;
|
||||
}
|
||||
}
|
||||
exports.BackendRuntimeContext = BackendRuntimeContext;
|
||||
|
|
|
|||
|
|
@ -809,6 +809,9 @@ function createComponent(option, features) {
|
|||
ready() {
|
||||
// 等oakFullpath构建完成后再ready
|
||||
if (this.state.oakFullpath) {
|
||||
if (this.props.oakId) {
|
||||
this.features.runningTree.setId(this.state.oakFullpath, this.props.oakId);
|
||||
}
|
||||
ready && ready.call(this);
|
||||
}
|
||||
else if (!this.oakOption.entity) {
|
||||
|
|
|
|||
|
|
@ -71,4 +71,11 @@ export abstract class BackendRuntimeContext<ED extends EntityDict & BaseEntityDi
|
|||
this.eventOperationMap = {};
|
||||
return super.rollback();
|
||||
}
|
||||
|
||||
/**
|
||||
* 某些特殊应用可能要手动清除subscriberId(taicang)
|
||||
*/
|
||||
clearSubscriber() {
|
||||
this.subscriberId = undefined;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue