IPersistentStorage.WriteStreamAsync Method

Definition

Overloads

WriteStreamAsync(String, Stream, CancellationToken)

Returns true if the data was successfully persisted to the storage subsystem. Subsequent calls to read the same keys should succeed if called within the same session.

WriteStreamAsync(Document, String, Stream, CancellationToken)

Returns true if the data was successfully persisted to the storage subsystem. Subsequent calls to read the same keys should succeed if called within the same session.

WriteStreamAsync(Project, String, Stream, CancellationToken)

Returns true if the data was successfully persisted to the storage subsystem. Subsequent calls to read the same keys should succeed if called within the same session.

WriteStreamAsync(String, Stream, CancellationToken)

Source:
IPersistentStorage.cs
Source:
IPersistentStorage.cs
Source:
IPersistentStorage.cs
Source:
IPersistentStorage.cs
Source:
IPersistentStorage.cs
Source:
IPersistentStorage.cs
Source:
IPersistentStorage.cs
Source:
IPersistentStorage.cs
Source:
IPersistentStorage.cs

Returns true if the data was successfully persisted to the storage subsystem. Subsequent calls to read the same keys should succeed if called within the same session.

public System.Threading.Tasks.Task<bool> WriteStreamAsync (string name, System.IO.Stream stream, System.Threading.CancellationToken cancellationToken = default);
abstract member WriteStreamAsync : string * System.IO.Stream * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function WriteStreamAsync (name As String, stream As Stream, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)

Parameters

name
String
stream
Stream
cancellationToken
CancellationToken

Returns

Applies to

WriteStreamAsync(Document, String, Stream, CancellationToken)

Source:
IPersistentStorage.cs
Source:
IPersistentStorage.cs
Source:
IPersistentStorage.cs
Source:
IPersistentStorage.cs
Source:
IPersistentStorage.cs
Source:
IPersistentStorage.cs
Source:
IPersistentStorage.cs
Source:
IPersistentStorage.cs
Source:
IPersistentStorage.cs

Returns true if the data was successfully persisted to the storage subsystem. Subsequent calls to read the same keys should succeed if called within the same session.

public System.Threading.Tasks.Task<bool> WriteStreamAsync (Microsoft.CodeAnalysis.Document document, string name, System.IO.Stream stream, System.Threading.CancellationToken cancellationToken = default);
abstract member WriteStreamAsync : Microsoft.CodeAnalysis.Document * string * System.IO.Stream * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function WriteStreamAsync (document As Document, name As String, stream As Stream, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)

Parameters

document
Document
name
String
stream
Stream
cancellationToken
CancellationToken

Returns

Applies to

WriteStreamAsync(Project, String, Stream, CancellationToken)

Source:
IPersistentStorage.cs
Source:
IPersistentStorage.cs
Source:
IPersistentStorage.cs
Source:
IPersistentStorage.cs
Source:
IPersistentStorage.cs
Source:
IPersistentStorage.cs
Source:
IPersistentStorage.cs
Source:
IPersistentStorage.cs
Source:
IPersistentStorage.cs

Returns true if the data was successfully persisted to the storage subsystem. Subsequent calls to read the same keys should succeed if called within the same session.

public System.Threading.Tasks.Task<bool> WriteStreamAsync (Microsoft.CodeAnalysis.Project project, string name, System.IO.Stream stream, System.Threading.CancellationToken cancellationToken = default);
abstract member WriteStreamAsync : Microsoft.CodeAnalysis.Project * string * System.IO.Stream * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function WriteStreamAsync (project As Project, name As String, stream As Stream, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)

Parameters

project
Project
name
String
stream
Stream
cancellationToken
CancellationToken

Returns

Applies to