Class BaseService
The base web service class.
Inheritance
System.Object
BaseService
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Web.Common
Assembly: Terrasoft.Web.Common.dll
Syntax
public abstract class BaseService
Constructors
BaseService()
Declaration
protected BaseService()
BaseService(UserConnection)
Declaration
protected BaseService(UserConnection userConnection)
Parameters
Type | Name | Description |
---|---|---|
UserConnection | userConnection |
Properties
AppConnection
Returns the application connection.
Declaration
protected virtual AppConnection AppConnection { get; }
Property Value
Type | Description |
---|---|
AppConnection |
Cache
Declaration
protected virtual Dictionary<string, object> Cache { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.Object> |
HttpContextAccessor
Declaration
public IHttpContextAccessor HttpContextAccessor { get; set; }
Property Value
Type | Description |
---|---|
IHttpContextAccessor |
UserConnection
Declaration
protected virtual UserConnection UserConnection { get; set; }
Property Value
Type | Description |
---|---|
UserConnection |
UserIsAuthenticated
Declaration
protected virtual bool UserIsAuthenticated { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
GetUserConnection()
Declaration
protected UserConnection GetUserConnection()
Returns
Type | Description |
---|---|
UserConnection |