public IFile OpenFile(string sPath, bool fWrite) { var f = new AzureFile { BlobStream = fWrite ? _provider.GetWriteBlobStream(sPath) : _provider.GetReadBlobStream(sPath) }; if (f.BlobStream == null) { return(null); } return(f); }
public IFile OpenFile(string sPath, bool fWrite) { //var f = new AzureFile(); //return f; sPath = PreparePath(sPath); var f = new AzureFile(); try { AzureCloudFile file = _provider.Get(sPath, true); f.Load(file.Data); return f; } catch { return f; }; }
public IFile OpenFile(string sPath, bool fWrite) { var f = new AzureFile(); if (fWrite == true) { f.BlobStream = _provider.GetWriteBlobStream(sPath); } else { f.BlobStream = _provider.GetReadBlobStream(sPath); } if (f.BlobStream == null) return null; return f; }
public IFile OpenFile(string sPath, bool fWrite) { var f = new AzureFile(); if (fWrite == true) { f.stream = _provider.GetWriteBlobStream(sPath); } else { f.stream = _provider.GetReadBlobStream(sPath); } if (f.stream == null) { return(null); } return(f); }
public IFile OpenFile(string sPath, bool fWrite) { var f = new AzureFile { BlobStream = fWrite ? _provider.GetWriteBlobStream(sPath) : _provider.GetReadBlobStream(sPath) }; if (f.BlobStream == null) return null; return f; }
public IFile OpenFile(string sPath, bool fWrite) { var f = new AzureFile(); return f; }
public IFile OpenFile(string sPath, bool fWrite) { var f = new AzureFile(); return(f); }
public IFile OpenFile(string sPath, bool fWrite) { sPath = PreparePath(sPath); AzureCloudFile file = _provider.Get(sPath, true); if (file == null) return new AzureFile(); var f = new AzureFile { File = new MemoryStream(file.Data) }; return f; }