/// <summary> /// Creates the file store details. /// </summary> /// <param name="fileStoreNode">The file store node.</param> /// <returns></returns> /// <remarks></remarks> private static FileStoreDetails CreateFileStoreDetails(XElement fileStoreNode) { FileStoreDetails fileStoreDetails = new FileStoreDetails { Method = GetFileStoreMethod(fileStoreNode), SourceDirectory = (string)fileStoreNode.Element("sourceDirectory"), DestinationDirectory = (string)fileStoreNode.Element("destinationDirectory"), ConfigurationSection = BuildConfigurationSection(fileStoreNode) }; return fileStoreDetails; }
/// <summary> /// Gets the worker. /// </summary> /// <param name="fileStoreDetails">The file store details.</param> /// <returns></returns> /// <remarks></remarks> public IFsaWorker GetWorker(FileStoreDetails fileStoreDetails) { return _workers.SingleOrDefault(worker => worker.Method == fileStoreDetails.Method); }