public async Task <IHttpActionResult> Get(string path) { var newpath = (string.IsNullOrEmpty(path)) ? HttpRuntime.AppDomainAppPath : path; fsManager = new LocalFSItemManager(newpath); return(Ok(new { fsitems = await fsManager.Get(newpath) })); }
public FSNodeViewModel( FSItemModel itemModel, IFSItemCollectionFactory itemCollectionFactory, IFSItemManagerFactory itemManagerFactory) : base(itemModel) { _itemCollection = itemCollectionFactory.Create(Items); _itemManager = itemManagerFactory.Create(Path, _itemCollection); _itemManager.UpdateLoaderState += OnUpdateLoaderState; }
public FSItemController(IFSItemManager fsManager) { this.fsManager = fsManager; }