Skip to content

Commit

Permalink
add Multipart document in .Net SDK (Azure#1937)
Browse files Browse the repository at this point in the history
- add csharp part of Multipart document
  • Loading branch information
chunyu3 authored and markcowl committed Dec 5, 2024
1 parent 3dfd8a7 commit f72dafa
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,20 @@ def upload(
```

```csharp
//model class
public partial class MultipartRequest
{
public string Id { get; }
public Address Address { get; }
public Stream ProfileImage { get; }
public IList<Stream> Pictures { get; }
}

//protocol method
public virtual async Task<Response> Upload(RequestContent content, string contentType, RequestContext context = null);

//convenience method
public virtual Response Upload(MultipartRequest body, CancellationToken cancellationToken = default)
```

```typescript
Expand Down

0 comments on commit f72dafa

Please sign in to comment.