public FileCollector(CacheManager cacheManager, FilesModel xmlString) { _cacheManager = cacheManager; // Create a required files object _requiredFiles = new RequiredFiles(); foreach (var item in xmlString.Items) { _requiredFiles.Files.Add(item); } // Get the key for later use hardwareKey = new HardwareKey(); // Make a new filelist collection _files = new Collection<RequiredFileModel>(); // Create a webservice call xmdsFile = new ServiceClient(); // Start up the Xmds Service Object //xmdsFile.Credentials = null; //xmdsFile.Url = Properties.Settings.Default.Client_xmds_xmds; //xmdsFile.UseDefaultCredentials = false; // Hook onto the xmds file complete event xmdsFile.GetFileCompleted += (XmdsFileGetFileCompleted); }
public FileCollector(CacheManager cacheManager, FilesModel xmlString) { _cacheManager = cacheManager; // Create a required files object _requiredFiles = new RequiredFiles(); foreach (var item in xmlString.Items) { _requiredFiles.Files.Add(item); } // Get the key for later use hardwareKey = new HardwareKey(); // Make a new filelist collection _files = new Collection <RequiredFileModel>(); // Create a webservice call xmdsFile = new ServiceClient(); // Start up the Xmds Service Object //xmdsFile.Credentials = null; //xmdsFile.Url = Properties.Settings.Default.Client_xmds_xmds; //xmdsFile.UseDefaultCredentials = false; // Hook onto the xmds file complete event xmdsFile.GetFileCompleted += (XmdsFileGetFileCompleted); }