You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The value from the leave open setting should be passed to the StreamReaderConstructor so it doesn't dispose the stream when asked to keep it open.
Repro:
varstream=newMemoryStream();// copy the value from a file stream, string etc.. in the streamvarsettings=newOpenApiReaderSettings{LeaveStreamOpen=true,};varreader=newOpenApiStreamReader(settings);varresult=awaitreader.ReadAsync(input,cancellationToken)
stream.Seek(0,SeekOrigin.Begin);// results in a object disposed exception when it shouldn't
When this is fixed, we can clean WorskpaceManagementService.MigrateFromLockFileAsync in kiota.
Activity