IProfileAddressService Interface
Namespace: PTS.Modules.ProfileAddressAggregate.Domain
Assembly: PTS.Modules.ProfileAddressAggregate.dll
A service providing access to profile addresses.
Syntax
public interface IProfileAddressService
Methods
GetProfileAddress(Profile, MailingAddressType)
Gets the profile address of the profile by type.
Declaration
ProfileAddress GetProfileAddress(Profile profile, MailingAddressType type)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
MailingAddressType | type | The address type. |
Returns
Type | Description |
---|---|
ProfileAddress | The profile's address. |
GetProfileAddressAggregate(Profile)
Gets all profile addresses of the profile.
Declaration
List<ProfileAddress> GetProfileAddressAggregate(Profile profile)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<ProfileAddress> | The profile's addresses. |
GetProfileAddressAggregateAsync(Profile)
Gets all profile addresses of the profile asynchronously.
Declaration
Task<List<ProfileAddress>> GetProfileAddressAggregateAsync(Profile profile)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.List<ProfileAddress>> | The profile's addresses. |
GetProfileAddressAsync(Profile, MailingAddressType)
Gets the profile address of the profile by type asynchronously.
Declaration
Task<ProfileAddress> GetProfileAddressAsync(Profile profile, MailingAddressType type)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
MailingAddressType | type | The address type. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ProfileAddress> | The profile's address. |
SetProfileAddress(Profile, PhysicalAddress, MailingAddressType)
Sets the profile address with given type.
Declaration
ProfileAddress SetProfileAddress(Profile profile, PhysicalAddress address, MailingAddressType type)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
PhysicalAddress | address | The address. |
MailingAddressType | type | The address type. |
Returns
Type | Description |
---|---|
ProfileAddress | The profile's address. |
SetProfileAddressAsync(Profile, PhysicalAddress, MailingAddressType)
Sets the profile address with given type asynchronously.
Declaration
Task<ProfileAddress> SetProfileAddressAsync(Profile profile, PhysicalAddress address, MailingAddressType type)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
PhysicalAddress | address | The address. |
MailingAddressType | type | The address type. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ProfileAddress> | The profile's address. |