diff options
author | 2021-10-06 21:07:43 -0400 | |
---|---|---|
committer | 2022-03-20 22:56:55 -0400 | |
commit | 067fe18168fae8b5cf5ac211dcf1f52f476e8bb7 (patch) | |
tree | 8f8b7e561d213d59f8949a05ae118c45864bda0e /usecaseui-portal/src/app/core/services/eventQueue.service.ts | |
parent | b44075625fe5d092e0f7048b254edc986dd26c0a (diff) |
Display CCVPN network topology and tunnel installation.
Issue-ID: REQ-1103
Signed-off-by: decheng zhang <decheng.zhang@huawei.com>
Change-Id: Ia8ad763ef8cdd48238c1398bd6680cc8ea2d14d6
Signed-off-by: decheng zhang <decheng.zhang@huawei.com>
Diffstat (limited to 'usecaseui-portal/src/app/core/services/eventQueue.service.ts')
-rw-r--r-- | usecaseui-portal/src/app/core/services/eventQueue.service.ts | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/usecaseui-portal/src/app/core/services/eventQueue.service.ts b/usecaseui-portal/src/app/core/services/eventQueue.service.ts deleted file mode 100644 index e4c32c38..00000000 --- a/usecaseui-portal/src/app/core/services/eventQueue.service.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - Copyright (C) 2021 Huawei Canada, Inc. and others. All rights reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -import { Injectable } from '@angular/core'; -import {Observable, Subject} from "rxjs/Rx"; -import {AppEvent} from "@src/app/core/services/appEvent"; -import {AppEventType} from "@src/app/core/services/appEventType"; -import {filter} from "rxjs/operators"; - -@Injectable() -export class EventQueueService { - - private eventBroker = new Subject<AppEvent<any>>(); - - on(eventType: AppEventType): Observable<AppEvent<any>> { - return this.eventBroker.pipe(filter(event => event.type === eventType)); - } - - dispatch<T>(event: AppEvent<T>): void { - this.eventBroker.next(event); - } - -}
\ No newline at end of file |