Class FCSession
Inheritance
System.Object
FCSession
Implements
System.IDisposable
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()
Assembly: fcSDK.dll
Syntax
public abstract class FCSession : IDisposable
Constructors
FCSession()
Declaration
FCSession(FCSessionData)
Declaration
protected FCSession(FCSessionData data)
Parameters
FCSession(FCSessionData, String, Int32)
Declaration
protected FCSession(FCSessionData data, string userName, int loginType)
Parameters
Type |
Name |
Description |
FCSessionData |
data |
|
System.String |
userName |
|
System.Int32 |
loginType |
|
FCSession(FCSessionData, String, String, Int32)
Declaration
protected FCSession(FCSessionData data, string userName, string password, int loginType)
Parameters
Type |
Name |
Description |
FCSessionData |
data |
|
System.String |
userName |
|
System.String |
password |
|
System.Int32 |
loginType |
|
Properties
ConfigItems
Declaration
public ConfigItemCollection ConfigItems { get; }
Property Value
ConvertTimeZone
Declaration
public bool ConvertTimeZone { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
CreationTime
Declaration
public DateTime CreationTime { get; }
Property Value
Type |
Description |
System.DateTime |
|
CurrentCulture
Declaration
public CultureInfo CurrentCulture { get; set; }
Property Value
Type |
Description |
System.Globalization.CultureInfo |
|
DataRestrictionsEnabled
Declaration
public bool DataRestrictionsEnabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
DefaultCulture
Declaration
public CultureInfo DefaultCulture { get; }
Property Value
Type |
Description |
System.Globalization.CultureInfo |
|
DefaultDistinctGenerics
Declaration
public bool DefaultDistinctGenerics { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
DisableDataConversions
Declaration
public bool DisableDataConversions { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
IncludeRelations
Declaration
public bool IncludeRelations { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Item[String]
Declaration
public object this[string key] { get; set; }
Parameters
Type |
Name |
Description |
System.String |
key |
|
Property Value
Type |
Description |
System.Object |
|
Items
Declaration
public IDictionary Items { get; }
Property Value
Type |
Description |
System.Collections.IDictionary |
|
LastLoadTime
Declaration
public DateTime LastLoadTime { get; }
Property Value
Type |
Description |
System.DateTime |
|
LocalTimeZone
Declaration
public ITimeZone LocalTimeZone { get; set; }
Property Value
Log
Declaration
public Logger Log { get; }
Property Value
LoginType
Declaration
public int LoginType { get; }
Property Value
Type |
Description |
System.Int32 |
|
MaximumRows
Declaration
public int MaximumRows { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
PasswordRequired
Declaration
public bool PasswordRequired { get; }
Property Value
Type |
Description |
System.Boolean |
|
QueryEmptyToNull
Declaration
public bool QueryEmptyToNull { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
RestrictionGroup
Declaration
public RestrictionGroup RestrictionGroup { get; }
Property Value
SessionData
Declaration
public FCSessionData SessionData { get; }
Property Value
SessionID
Declaration
public Guid SessionID { get; }
Property Value
Type |
Description |
System.Guid |
|
SetNullStringsToEmpty
Declaration
public bool SetNullStringsToEmpty { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
TimeZoneConversions
Declaration
public ExcludedColumns TimeZoneConversions { get; set; }
Property Value
TruncateStringFields
Declaration
public bool TruncateStringFields { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
UserID
Declaration
public object UserID { get; }
Property Value
Type |
Description |
System.Object |
|
UserName
Declaration
public string UserName { get; }
Property Value
Type |
Description |
System.String |
|
Methods
_GetNextDataTableId()
Declaration
protected string _GetNextDataTableId()
Returns
Type |
Description |
System.String |
|
ChangePassword(String)
Declaration
public void ChangePassword(string newPassword)
Parameters
Type |
Name |
Description |
System.String |
newPassword |
|
ChangeRestrictionGroup(String, Boolean)
Declaration
public virtual void ChangeRestrictionGroup(string newGroupName, bool saveChange)
Parameters
Type |
Name |
Description |
System.String |
newGroupName |
|
System.Boolean |
saveChange |
|
CloseSession()
Declaration
public void CloseSession()
CloseSession(Boolean)
Declaration
protected void CloseSession(bool nullDataReference)
Parameters
Type |
Name |
Description |
System.Boolean |
nullDataReference |
|
ConvertDate(DateTime, ITimeZone, ITimeZone)
Declaration
public virtual DateTime ConvertDate(DateTime date, ITimeZone fromTZ, ITimeZone toTZ)
Parameters
Returns
Type |
Description |
System.DateTime |
|
ConvertDate(DateTime, String, String)
Declaration
public virtual DateTime ConvertDate(DateTime date, string fromTZName, string toTZName)
Parameters
Type |
Name |
Description |
System.DateTime |
date |
|
System.String |
fromTZName |
|
System.String |
toTZName |
|
Returns
Type |
Description |
System.DateTime |
|
ConvertFromLocalToServerDate(DateTime)
Declaration
public virtual DateTime ConvertFromLocalToServerDate(DateTime date)
Parameters
Type |
Name |
Description |
System.DateTime |
date |
|
Returns
Type |
Description |
System.DateTime |
|
ConvertFromServerToLocalDate(DateTime)
Declaration
public virtual DateTime ConvertFromServerToLocalDate(DateTime date)
Parameters
Type |
Name |
Description |
System.DateTime |
date |
|
Returns
Type |
Description |
System.DateTime |
|
Dispose()
Declaration
public virtual void Dispose()
Declaration
public virtual string FormatElapsedTime(double elapsedTime)
Parameters
Type |
Name |
Description |
System.Double |
elapsedTime |
|
Returns
Type |
Description |
System.String |
|
Declaration
public virtual string FormatElapsedTime(int elapsedTime)
Parameters
Type |
Name |
Description |
System.Int32 |
elapsedTime |
|
Returns
Type |
Description |
System.String |
|
Declaration
public virtual string FormatElapsedTime(TimeSpan ts)
Parameters
Type |
Name |
Description |
System.TimeSpan |
ts |
|
Returns
Type |
Description |
System.String |
|
GetAssignedPermissions()
Declaration
public virtual string[] GetAssignedPermissions()
Returns
Type |
Description |
System.String[] |
|
GetCurrentDate()
Declaration
public virtual DateTime GetCurrentDate()
Returns
Type |
Description |
System.DateTime |
|
GetCurrentServerDate()
Declaration
public virtual DateTime GetCurrentServerDate()
Returns
Type |
Description |
System.DateTime |
|
GetRestrictionGroupForUser(Object)
Declaration
protected abstract RestrictionGroup GetRestrictionGroupForUser(object UserID)
Parameters
Type |
Name |
Description |
System.Object |
UserID |
|
Returns
HasPermission(String)
Declaration
public virtual bool HasPermission(string permission)
Parameters
Type |
Name |
Description |
System.String |
permission |
|
Returns
Type |
Description |
System.Boolean |
|
InitializeSession(FCSessionData)
Declaration
protected virtual void InitializeSession(FCSessionData data)
Parameters
LoadSessionDataFromApplicationCache(Guid)
Declaration
protected static FCSessionData LoadSessionDataFromApplicationCache(Guid sessionId)
Parameters
Type |
Name |
Description |
System.Guid |
sessionId |
|
Returns
LoginFromApp()
Declaration
protected void LoginFromApp()
LoginInternal(String, String, Int32, Boolean, Boolean, Boolean)
Declaration
protected void LoginInternal(string inUsername, string password, int inLoginType, bool isLoginTypeSpecified, bool passwordRequired, bool cleanupOnError)
Parameters
Type |
Name |
Description |
System.String |
inUsername |
|
System.String |
password |
|
System.Int32 |
inLoginType |
|
System.Boolean |
isLoginTypeSpecified |
|
System.Boolean |
passwordRequired |
|
System.Boolean |
cleanupOnError |
|
Declaration
protected abstract void PerformChangePassword(string username, string newPassword, int LoginType)
Parameters
Type |
Name |
Description |
System.String |
username |
|
System.String |
newPassword |
|
System.Int32 |
LoginType |
|
Declaration
protected abstract RestrictionGroup PerformChangeResGroup(string newGroup, bool saveToDb)
Parameters
Type |
Name |
Description |
System.String |
newGroup |
|
System.Boolean |
saveToDb |
|
Returns
Declaration
protected abstract DateTime PerformConvertDate(DateTime date, ITimeZone fromTZ, ITimeZone toTZ)
Parameters
Returns
Type |
Description |
System.DateTime |
|
Declaration
protected abstract DateTime PerformConvertDate(DateTime date, string fromTZName, string toTZName)
Parameters
Type |
Name |
Description |
System.DateTime |
date |
|
System.String |
fromTZName |
|
System.String |
toTZName |
|
Returns
Type |
Description |
System.DateTime |
|
Declaration
protected abstract object PerformLogin(string inUsername, int inLoginType)
Parameters
Type |
Name |
Description |
System.String |
inUsername |
|
System.Int32 |
inLoginType |
|
Returns
Type |
Description |
System.Object |
|
Declaration
protected abstract object PerformLogin(string inUsername, string password)
Parameters
Type |
Name |
Description |
System.String |
inUsername |
|
System.String |
password |
|
Returns
Type |
Description |
System.Object |
|
Declaration
protected abstract object PerformLogin(string inUsername, string password, int inLoginType)
Parameters
Type |
Name |
Description |
System.String |
inUsername |
|
System.String |
password |
|
System.Int32 |
inLoginType |
|
Returns
Type |
Description |
System.Object |
|
PerformRefreshContext()
Declaration
protected abstract void PerformRefreshContext()
Declaration
protected abstract void PerformSetPassword(string username, string newPassword, int LoginType)
Parameters
Type |
Name |
Description |
System.String |
username |
|
System.String |
newPassword |
|
System.Int32 |
LoginType |
|
RefreshContext()
Declaration
public virtual void RefreshContext()
RegisterLicenseRequirements(Int32)
Declaration
public void RegisterLicenseRequirements(int productId)
Parameters
Type |
Name |
Description |
System.Int32 |
productId |
|
ResetSessionLoginStatus()
Declaration
protected virtual void ResetSessionLoginStatus()
SaveSession()
Declaration
public void SaveSession()
SetPassword(String, String, Int32)
Declaration
public void SetPassword(string inUsername, string newPass, int LoginType)
Parameters
Type |
Name |
Description |
System.String |
inUsername |
|
System.String |
newPass |
|
System.Int32 |
LoginType |
|
SetupSessionData(FCSessionData)
Declaration
protected abstract void SetupSessionData(FCSessionData data)
Parameters
ShouldConvertToLocalDate(DateTime, DataColumn)
Declaration
public bool ShouldConvertToLocalDate(DateTime dateTimeValue, DataColumn column)
Parameters
Type |
Name |
Description |
System.DateTime |
dateTimeValue |
|
System.Data.DataColumn |
column |
|
Returns
Type |
Description |
System.Boolean |
|
UpdateLastLogin(String)
Declaration
protected abstract void UpdateLastLogin(string inUsername)
Parameters
Type |
Name |
Description |
System.String |
inUsername |
|
Implements
System.IDisposable