ProfilePictureService Class
Namespace: PTS.Modules.ProfilePictureAggregate.Common
Assembly: PTS.Modules.ProfilePictureAggregate.dll
Syntax
public class ProfilePictureService : UnitOfWorkService, IServiceProviderAccessor, IProfilePictureService, ISeedWork<IProfilePictureService>, ISeedWork
Implements
Constructors
ProfilePictureService(IUnitOfWork)
Declaration
public ProfilePictureService(IUnitOfWork unitOfWork)
Parameters
Type | Name | Description |
---|---|---|
IUnitOfWork | unitOfWork |
Properties
Pictures
Declaration
protected IRepository<Picture> Pictures { get; }
Property Value
Type | Description |
---|---|
IRepository<Picture> |
ProfilePictureAggregate
Declaration
protected IRepository<ProfilePicture> ProfilePictureAggregate { get; }
Property Value
Type | Description |
---|---|
IRepository<ProfilePicture> |
Methods
GetPicture(Profile, PictureType)
Gets the Picture for profile
.
Declaration
public virtual Picture GetPicture(Profile profile, PictureType type)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
PictureType | type | The type. |
Returns
Type | Description |
---|---|
Picture | The Picture. |
GetPictureAsync(Profile, PictureType)
Gets the Picture for profile
.
Declaration
public virtual Task<Picture> GetPictureAsync(Profile profile, PictureType type)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
PictureType | type | The type. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Picture> | The System.Threading.Tasks.Task with result of Picture. |
GetPictures(Profile)
Gets the System.Collections.Generic.List<T> collection for profile
.
Declaration
public virtual List<Picture> GetPictures(Profile profile)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Picture> | The collection of Picture. |
GetPicturesAsync(Profile)
Gets the System.Collections.Generic.List<T> collection for profile
.
Declaration
public virtual Task<List<Picture>> GetPicturesAsync(Profile profile)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.List<Picture>> | The System.Threading.Tasks.Task with result of collection of Picture. |
SetPicture(Profile, Picture, PictureType)
Sets the Picture for profile
with type
.
Declaration
public virtual ProfilePicture SetPicture(Profile profile, Picture picture, PictureType type)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Picture | picture | The picture. |
PictureType | type | The type. |
Returns
Type | Description |
---|---|
ProfilePicture | The ProfilePicture. |
SetPictureAsync(Profile, Picture, PictureType)
Sets the Picture for profile
with type
.
Declaration
public virtual Task<ProfilePicture> SetPictureAsync(Profile profile, Picture picture, PictureType type)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Picture | picture | The picture. |
PictureType | type | The type. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ProfilePicture> | The System.Threading.Tasks.Task with result of ProfilePicture. |
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()