Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
export
  • Loading branch information
christothes committed Oct 15, 2024
commit ac42dd5de634020918bcefc6fbe2f575ac63bbd6
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,33 @@ public readonly partial struct MessagingServices
public void SendMessage(object serializable) { }
public void WhenMessageReceived(System.Action<string> received) { }
}
public partial class StorageFile
{
internal StorageFile() { }
public System.Threading.CancellationToken CancellationToken { get { throw null; } }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public System.Type GetType { get { throw null; } }
public string Path { get { throw null; } }
public string RequestId { get { throw null; } }
public void Delete() { }
public System.BinaryData Download() { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override bool Equals(object obj) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override int GetHashCode() { throw null; }
public static implicit operator Azure.Response (Azure.CloudMachine.StorageFile result) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override string ToString() { throw null; }
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly partial struct StorageServices
{
private readonly object _dummy;
private readonly int _dummyPrimitive;
public System.BinaryData DownloadBlob(string name) { throw null; }
public void DeleteBlob(string path) { }
public System.BinaryData DownloadBlob(string path) { throw null; }
public string UploadBlob(object json, string? name = null) { throw null; }
public void WhenBlobCreated(System.Func<string, System.Threading.Tasks.Task> function) { }
public void WhenBlobUploaded(System.Action<string> function) { }
public void WhenBlobUploaded(System.Action<Azure.CloudMachine.StorageFile> function) { }
}
}
namespace Azure.Core
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,9 @@ public BinaryData DownloadBlob(string path)
return result.Content;
}

public void DeleteBlob(string name)
public void DeleteBlob(string path)
{
BlobContainerClient container = GetDefaultContainer();
BlobClient blob = container.GetBlobClient(name);
BlobClient blob = GetBlobClientFromPath(path, null);
blob.DeleteIfExists();
}

Expand Down