C# 클래스 PhotoSharingApp.AppService.Shared.Validation.PhotoValidation

Validation class for photo operations.
상속: IPhotoValidation
파일 보기 프로젝트 열기: Microsoft/Appsample-Photosharing 1 사용 예제들

공개 메소드들

메소드 설명
IsUserPhotoOwner ( string userRegistration, string photoId ) : Task

Validates that the current user owns a photo.

PhotoValidation ( IRepository repository ) : System

The constructor for creating a new PhotoValidation instance

메소드 상세

IsUserPhotoOwner() 공개 메소드

Validates that the current user owns a photo.
public IsUserPhotoOwner ( string userRegistration, string photoId ) : Task
userRegistration string Account string value from mobile service auth.
photoId string Id of photo to validate.
리턴 Task

PhotoValidation() 공개 메소드

The constructor for creating a new PhotoValidation instance
public PhotoValidation ( IRepository repository ) : System
repository IRepository Data layer.
리턴 System