Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 891 Bytes

applicationservice.md

File metadata and controls

18 lines (15 loc) · 891 Bytes

< Back to tutorial

Creating an Application Service

Unit of Work

By default functions in an application service are transactional, meaning if there's an exception in the function then all repository functions are rolled back. It can be turned off by adding the UnitOfWork attribute to your function and setting IsDisabled to true.

[UnitOfWork(IsDisabled: true)]

Hide from Controller

The .Web.Core module is configured to generate WebAPI controllers for any application services found in .Application. To prevent a specific application service or function in a service from being generated, add the RemoteService attibute and set isEnabled to false.

[RemoteService(isEnabled: false)]

< Back to tutorial