private Dictionary <string, List <string> > responseCache; // <path, FileList> public FileManager(AndroidDevice dev, ADBInstance i) { InitializeComponent(); device = dev; adbi = i; Text = "File Manager [Device Serial: " + dev.Serial + "]"; adbFM = new ADBFileManagmentService(dev, adbi); objStatusCache = new Dictionary <string, FSObjectStatus>(); responseCache = new Dictionary <string, List <string> >(); }
private readonly IFileManagmentService fileManagmentService; //IFileManagmentService field /// <summary> /// Initializes the controller dependencies /// </summary> public FileManagmentController(IFileManagmentService fileManagmentService) //IFileManagmentService injection to controller { this.fileManagmentService = fileManagmentService; //Assigning injected service to field }