DataTables / Editor-NET

.NET Framework and .NET Core server-side libraries for Editor
Other
15 stars 11 forks source link

Async methods? #25

Open VictorioBerra opened 1 month ago

VictorioBerra commented 1 month ago

For example Validate Async?

IE:

var editor = new Editor(db, "FieldDefinition", "Id")
    .ValidatorAsync(async (editor, action, data) =>
    {
        // ...
        var hasPermission = await policyServerRuntimeClient.HasPermissionAsync(this.User, "WriteInventory");
    })
AllanJard commented 1 month ago

Sorry, there is no async support for validators in the .NET libraries for Editor at the moment. That's a nice idea though - thank you for suggesting it.