UNPKG

abp-ng2-module

Version:

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.0.7.

30 lines 3.39 kB
///<reference path="../../../../../../node_modules/abp-web-resources/Abp/Framework/scripts/abp.d.ts"/> ///<reference path="../../../../../../node_modules/abp-web-resources/Abp/Framework/scripts/abp.d.ts"/> import { Injectable } from '@angular/core'; import * as i0 from "@angular/core"; export class AbpSessionService { get userId() { return abp.session.userId; } get tenantId() { return abp.session.tenantId; } get impersonatorUserId() { return abp.session.impersonatorUserId; } get impersonatorTenantId() { return abp.session.impersonatorTenantId; } get multiTenancySide() { return abp.session.multiTenancySide; } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: AbpSessionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: AbpSessionService, providedIn: 'root' }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: AbpSessionService, decorators: [{ type: Injectable, args: [{ providedIn: 'root' }] }] }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJwLXNlc3Npb24uc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FicC1uZzItbW9kdWxlL3NyYy9saWIvc2VydmljZXMvc2Vzc2lvbi9hYnAtc2Vzc2lvbi5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHNHQUFzRztBQUF0RyxzR0FBc0c7QUFFdEcsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFLM0MsTUFBTSxPQUFPLGlCQUFpQjtJQUUxQixJQUFJLE1BQU07UUFDTixPQUFPLEdBQUcsQ0FBQyxPQUFPLENBQU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