IdentityService Class
Namespace: PTS.Modules.Identities.Common
Assembly: PTS.Modules.Identities.dll
Syntax
public class IdentityService : UnitOfWorkService, IServiceProviderAccessor, IIdentityService, ISeedWork<IIdentityService>, ISeedWork
Constructors
IdentityService(IUnitOfWork)
Declaration
public IdentityService(IUnitOfWork unitOfWork)
Parameters
| Type | Name | Description |
|---|---|---|
| IUnitOfWork | unitOfWork |
Properties
Locales
Declaration
protected IRepository<IdentityLocale> Locales { get; }
Property Value
| Type | Description |
|---|---|
| IRepository<IdentityLocale> |
Methods
GetLocale(Identity)
Declaration
public virtual IdentityLocale GetLocale(Identity identity)
Parameters
| Type | Name | Description |
|---|---|---|
| Identity | identity |
Returns
| Type | Description |
|---|---|
| IdentityLocale |
SetLocale(Identity, LanguageCode, CurrencyCode, CountryCode, DateFormat, TimeZoneCode)
Declaration
public virtual IdentityLocale SetLocale(Identity identity, LanguageCode language, CurrencyCode currency, CountryCode country, DateFormat dateFormat, TimeZoneCode timeZone)
Parameters
| Type | Name | Description |
|---|---|---|
| Identity | identity | |
| LanguageCode | language | |
| CurrencyCode | currency | |
| CountryCode | country | |
| DateFormat | dateFormat | |
| TimeZoneCode | timeZone |
Returns
| Type | Description |
|---|---|
| IdentityLocale |
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()