DataTables / Editor-NET

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

Async methods? #25

Open VictorioBerra opened 4 months ago

VictorioBerra commented 4 months 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 4 months 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.