potected override NodeContent GetContent(... BlobClient blobClient = getAZBlobClient(getNodeBlobName(node)); BlobDownloadInfo download = blobClient.Download(); return NodeContent.CreateReadOnlyContent(download.Content); //return NodeContent.CreateImmediateWriteContent(download.Content.)
mySftpServer.LogWriter = new Rebex.FileLogWriter(@"c:\temp\log.txt", Rebex.LogLevel.Debug);
public MyAzureProvider(FileSystemProviderSettings fileSystemSettings = null) : base(fileSystemSettings) { ... }
var settings = new FileSystemProviderSettings() { LogWriter = new Rebex.FileLogWriter(@"c:\temp\log.txt", Rebex.LogLevel.Debug) }; var myAzureProvider = new MyAzureProvider(settings);
var blobClient = GetBlobClientForNode(node); if (contentParameters.AccessType == NodeContentAccess.Read) { return NodeContent.CreateReadOnlyContent(blobClient.OpenRead()); }
var blobClient = GetBlobClientForNode(node); if (contentParameters.AccessType == NodeContentAccess.Write) { var blockBlobClient = GetContainerClientForNode(node.Parent).GetBlockBlobClient(node.Name); var blobWriteStream = new BlobWriteStream(blobClient, blockBlobClient, _memoryStreamManager); return NodeContent.CreateImmediateWriteContent(blobWriteStream); }
Welcome to Q&A forum for C# and VB.NET developers working with following .NET components:
Applications:
If you need immediate assistance, please contact us directly.