FileSystemCommandProcessor Class

Provides methods to process commands in the Controller in a custom manner.

Namespace: DevExtreme.AspNet.Mvc.FileManagement

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public class FileSystemCommandProcessor

Remarks

The following example illustrates how to create a method that handles the File Manager operations.

API Controller:

public class FileManagerApiController : Controller {
    public object FileSystem(FileSystemCommand command, string arguments) {
        var config = new FileSystemConfiguration {
            Request = Request,
            FileSystemProvider = new DefaultFileProvider(_hostingEnvironment.ContentRootPath + "/wwwroot"),
            //...
        };
        var processor = new FileSystemCommandProcessor(config);
        var result = processor.Execute(command, arguments);
        //...
    }
}

Online Demos:

Online Example: File Manager - How to connect to a database using IFIleSystemProvider

Inheritance

Object
FileSystemCommandProcessor
See Also