Register it in the PreInitialize method.
From the ASP.NET Core documentation's Application Services as Controllers section:
You can use any ASP.NET Core attributes to change the HTTP methods or routes of the actions. This requires you to add a reference to the Microsoft.AspNetCore.Mvc.Core package.
[HttpPut]
public async Task EditCustomer(EditCustomerDto input)
Or you can do it by convention: https://github.com/aspnetboilerplate/aspnetboilerplate/issues/2939
Duplicate of #4206@1869b60c-666b-42bd-b275-2b83d023cc6f
Save changes before publishing a notification.
Did you override SaveChangesAsync too?
Override SaveChanges in YourDbContext, as mentioned in that topic.
This is the same for Slack, Facebook, etc. It's also used for account recovery. This is suitable for most projects.
A workaround for your design decision is to generate a placeholder, e.g. 0000-0000-0000-0000@example_._com (where 0000-0000-0000-0000 is a NewGuid).
Did you install .NET Core 2.0 SDK?
That's great :)
The done handler can have a result parameter: https://aspnetboilerplate.com/Pages/Documents/AspNet-Core#client-proxies