20 namespace Deveel.Data.Configuration {
34 throw new ArgumentNullException(
"filePath");
42 public string FilePath {
get;
private set; }
45 public Stream InputStream {
48 return new FileStream(FilePath, FileMode.Open, FileAccess.Read, FileShare.Read, 1024);
49 }
catch (Exception ex) {
56 public Stream OutputStream {
59 return new FileStream(FilePath, FileMode.OpenOrCreate, FileAccess.Write, FileShare.Read, 1024);
60 }
catch (Exception ex) {
A source for stored configurations or destination to configurations to store.
FileConfigSource(string filePath)
Constructs the source over the file located at the given path within the underlying file-system...
A channel used to read from and write to a given file in the underlying file-system.