Skip to content

Commit 38f4558

Browse files
author
Andrew Omondi
committed
add missing using statement
1 parent 4b47b57 commit 38f4558

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.Graph.Core/Tasks/LargeFileUploadTask.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ internal static IUploadSession ExtractSessionFromParsable(IParsable uploadSessio
7575
throw new ArgumentException("The Parsable does not contain the 'uploadUrl' property");
7676

7777
// convert to local type as we don't have the type info for the upload session just that it implements IParsable
78-
var uploadSessionStream = KiotaSerializer.SerializeAsStream(CoreConstants.MimeTypeNames.Application.Json, uploadSession, false);// just in case there's a backing store
78+
using var uploadSessionStream = KiotaSerializer.SerializeAsStream(CoreConstants.MimeTypeNames.Application.Json, uploadSession, false);// just in case there's a backing store
7979
var uploadSessionJsonNode = new JsonParseNode(JsonDocument.Parse(uploadSessionStream).RootElement);
8080
return uploadSessionJsonNode.GetObjectValue(UploadSession.CreateFromDiscriminatorValue);
8181
}

0 commit comments

Comments
 (0)