C# Class PhotoSharingApp.AppService.Controllers.PhotoController

Inheritance: BaseController
Datei anzeigen Open project: Microsoft/Appsample-Photosharing Class Usage Examples

Public Methods

Method Description
PhotoController ( IRepository repository, Microsoft.ApplicationInsights.TelemetryClient telemetryClient, IPhotoValidation photoValidation, IUserRegistrationReferenceProvider userRegistrationReferenceProvider ) : System.Threading.Tasks

Controller for photo operations.

Private Methods

Method Description
DeleteAsync ( string id ) : System.Threading.Tasks.Task
GetAsync ( string id ) : Task
PostAsync ( PhotoContract photo ) : Task
PutAsync ( PhotoContract photo ) : Task

Method Details

PhotoController() public method

Controller for photo operations.
public PhotoController ( IRepository repository, Microsoft.ApplicationInsights.TelemetryClient telemetryClient, IPhotoValidation photoValidation, IUserRegistrationReferenceProvider userRegistrationReferenceProvider ) : System.Threading.Tasks
repository IRepository Data layer.
telemetryClient Microsoft.ApplicationInsights.TelemetryClient Telemetry client.
photoValidation IPhotoValidation Validation layer.
userRegistrationReferenceProvider IUserRegistrationReferenceProvider The user registration reference provider.
return System.Threading.Tasks