IProfileAliasService Interface
Namespace: PTS.Modules.ProfileAliasExtension.Domain
Assembly: PTS.Modules.ProfileAliasExtension.dll
Syntax
public interface IProfileAliasService
Methods
GetAlias(Profile)
Gets the ProfileAlias for Profile.
Declaration
ProfileAlias GetAlias(Profile profile)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Returns
Type | Description |
---|---|
ProfileAlias | The ProfileAlias entity. |
GetAliasAsync(Profile)
Gets the ProfileAlias for Profile.
Declaration
Task<ProfileAlias> GetAliasAsync(Profile profile)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ProfileAlias> | A System.Threading.Tasks.Task with a result of ProfileAlias entity. |
SetAlias(Profile, String)
Declaration
ProfileAlias SetAlias(Profile profile, string alias)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | |
System.String | alias |
Returns
Type | Description |
---|---|
ProfileAlias |
SetAliasAsync(Profile, String)
Sets the ProfileAlias for Profile.
Declaration
Task<ProfileAlias> SetAliasAsync(Profile profile, string alias)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
System.String | alias | The alias string. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ProfileAlias> | A System.Threading.Tasks.Task with a result of ProfileAlias entity. |
SetDefaultAlias(Profile)
Sets the default ProfileAlias for Profile based on the Name.
Declaration
ProfileAlias SetDefaultAlias(Profile profile)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The Profile entity. |
Returns
Type | Description |
---|---|
ProfileAlias | The ProfileAlias entity. |
SetDefaultAliasAsync(Profile)
Sets the default ProfileAlias for Profile based on the Name.
Declaration
Task<ProfileAlias> SetDefaultAliasAsync(Profile profile)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ProfileAlias> | A System.Threading.Tasks.Task with a result of ProfileAlias entity. |