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)]
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)]