Example #1
0
        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) }));
        }
Example #2
0
 public FSNodeViewModel(
     FSItemModel itemModel,
     IFSItemCollectionFactory itemCollectionFactory,
     IFSItemManagerFactory itemManagerFactory) : base(itemModel)
 {
     _itemCollection = itemCollectionFactory.Create(Items);
     _itemManager    = itemManagerFactory.Create(Path, _itemCollection);
     _itemManager.UpdateLoaderState += OnUpdateLoaderState;
 }
Example #3
0
 public FSItemController(IFSItemManager fsManager)
 {
     this.fsManager = fsManager;
 }