-
Notifications
You must be signed in to change notification settings - Fork 264
/
TaskOutputStorage.xml
366 lines (366 loc) · 30.5 KB
/
TaskOutputStorage.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
<Type Name="TaskOutputStorage" FullName="Microsoft.Azure.Batch.Conventions.Files.TaskOutputStorage">
<TypeSignature Language="C#" Value="public class TaskOutputStorage" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit TaskOutputStorage extends System.Object" />
<TypeSignature Language="DocId" Value="T:Microsoft.Azure.Batch.Conventions.Files.TaskOutputStorage" />
<TypeSignature Language="VB.NET" Value="Public Class TaskOutputStorage" />
<TypeSignature Language="F#" Value="type TaskOutputStorage = class" />
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Batch.Conventions.Files</AssemblyName>
<AssemblyVersion>3.5.1.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>
Represents persistent storage for the outputs of an Azure Batch task.
</summary>
<remarks>
Task outputs refer to output data logically associated with a specific task, rather than
the job as a whole. For example, in a movie rendering job, if a task rendered a single frame,
that frame would be a task output. Logs and other diagnostic information such as intermediate
files may also be persisted as task outputs (see <see cref="T:Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind" /> for a way to
categorise these so that clients can distinguish between the main output and auxiliary data).
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public TaskOutputStorage (Uri jobOutputContainerUri, string taskId);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Uri jobOutputContainerUri, string taskId) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Azure.Batch.Conventions.Files.TaskOutputStorage.#ctor(System.Uri,System.String)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (jobOutputContainerUri As Uri, taskId As String)" />
<MemberSignature Language="F#" Value="new Microsoft.Azure.Batch.Conventions.Files.TaskOutputStorage : Uri * string -> Microsoft.Azure.Batch.Conventions.Files.TaskOutputStorage" Usage="new Microsoft.Azure.Batch.Conventions.Files.TaskOutputStorage (jobOutputContainerUri, taskId)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Batch.Conventions.Files</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="jobOutputContainerUri" Type="System.Uri" />
<Parameter Name="taskId" Type="System.String" />
</Parameters>
<Docs>
<param name="jobOutputContainerUri">The URL in Azure storage of the blob container to
use for outputs associated with this job. This URL must contain a SAS (Shared Access
Signature) granting access to the container, or the container must be public.</param>
<param name="taskId">The id of the Azure Batch task.</param>
<summary>
Initializes a new instance of the <see cref="T:Microsoft.Azure.Batch.Conventions.Files.JobOutputStorage" /> class from a task id and
a URL representing the job output container.
</summary>
<remarks>The container must already exist; the TaskOutputStorage class does not create
it for you.</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public TaskOutputStorage (Azure.Storage.Blobs.BlobServiceClient blobClient, string jobId, string taskId);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class Azure.Storage.Blobs.BlobServiceClient blobClient, string jobId, string taskId) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Azure.Batch.Conventions.Files.TaskOutputStorage.#ctor(Azure.Storage.Blobs.BlobServiceClient,System.String,System.String)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (blobClient As BlobServiceClient, jobId As String, taskId As String)" />
<MemberSignature Language="F#" Value="new Microsoft.Azure.Batch.Conventions.Files.TaskOutputStorage : Azure.Storage.Blobs.BlobServiceClient * string * string -> Microsoft.Azure.Batch.Conventions.Files.TaskOutputStorage" Usage="new Microsoft.Azure.Batch.Conventions.Files.TaskOutputStorage (blobClient, jobId, taskId)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Batch.Conventions.Files</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="blobClient" Type="Azure.Storage.Blobs.BlobServiceClient" />
<Parameter Name="jobId" Type="System.String" />
<Parameter Name="taskId" Type="System.String" />
</Parameters>
<Docs>
<param name="blobClient">The blob client linked to the Azure Batch storage account.</param>
<param name="jobId">The id of the Azure Batch job containing the task.</param>
<param name="taskId">The id of the Azure Batch task.</param>
<summary>
Initializes a new instance of the <see cref="T:Microsoft.Azure.Batch.Conventions.Files.JobOutputStorage" /> class from a storage account,
job id, and task id.
</summary>
<remarks>The job output container must already exist; the TaskOutputStorage class does not create
it for you.</remarks>
</Docs>
</Member>
<Member MemberName="GetOutput">
<MemberSignature Language="C#" Value="public Microsoft.Azure.Batch.Conventions.Files.OutputFileReference GetOutput (Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind kind, string filePath);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class Microsoft.Azure.Batch.Conventions.Files.OutputFileReference GetOutput(class Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind kind, string filePath) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Azure.Batch.Conventions.Files.TaskOutputStorage.GetOutput(Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind,System.String)" />
<MemberSignature Language="VB.NET" Value="Public Function GetOutput (kind As TaskOutputKind, filePath As String) As OutputFileReference" />
<MemberSignature Language="F#" Value="member this.GetOutput : Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind * string -> Microsoft.Azure.Batch.Conventions.Files.OutputFileReference" Usage="taskOutputStorage.GetOutput (kind, filePath)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Batch.Conventions.Files</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Microsoft.Azure.Batch.Conventions.Files.OutputFileReference</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="kind" Type="Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind" />
<Parameter Name="filePath" Type="System.String" />
</Parameters>
<Docs>
<param name="kind">A <see cref="T:Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind" /> representing the category of the output to
retrieve, for example <see cref="F:Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind.TaskOutput" /> or <see cref="F:Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind.TaskLog" />.</param>
<param name="filePath">The path under which the output was persisted in blob storage.</param>
<summary>
Retrieves a task output from Azure blob storage by kind and path.
</summary>
<returns>A reference to the requested file in Azure blob storage.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetOutputStoragePath">
<MemberSignature Language="C#" Value="public string GetOutputStoragePath (Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind kind);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance string GetOutputStoragePath(class Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind kind) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Azure.Batch.Conventions.Files.TaskOutputStorage.GetOutputStoragePath(Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind)" />
<MemberSignature Language="VB.NET" Value="Public Function GetOutputStoragePath (kind As TaskOutputKind) As String" />
<MemberSignature Language="F#" Value="member this.GetOutputStoragePath : Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind -> string" Usage="taskOutputStorage.GetOutputStoragePath kind" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Batch.Conventions.Files</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="kind" Type="Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind" />
</Parameters>
<Docs>
<param name="kind">The output kind.</param>
<summary>
Gets the Blob name prefix/folder where files of the given kind are stored
</summary>
<returns>The Blob name prefix/folder where files of the given kind are stored.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ListOutputs">
<MemberSignature Language="C#" Value="public System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.Conventions.Files.OutputFileReference> ListOutputs (Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind kind);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Collections.Generic.IEnumerable`1<class Microsoft.Azure.Batch.Conventions.Files.OutputFileReference> ListOutputs(class Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind kind) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Azure.Batch.Conventions.Files.TaskOutputStorage.ListOutputs(Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind)" />
<MemberSignature Language="VB.NET" Value="Public Function ListOutputs (kind As TaskOutputKind) As IEnumerable(Of OutputFileReference)" />
<MemberSignature Language="F#" Value="member this.ListOutputs : Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind -> seq<Microsoft.Azure.Batch.Conventions.Files.OutputFileReference>" Usage="taskOutputStorage.ListOutputs kind" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Batch.Conventions.Files</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.Conventions.Files.OutputFileReference></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="kind" Type="Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind" />
</Parameters>
<Docs>
<param name="kind">A <see cref="T:Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind" /> representing the category of outputs to
list, for example <see cref="F:Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind.TaskOutput" /> or <see cref="F:Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind.TaskLog" />.</param>
<summary>
Lists the task outputs of the specified kind.
</summary>
<returns>A list of persisted task outputs of the specified kind.</returns>
<remarks>The list is retrieved lazily from Azure blob storage when it is enumerated.</remarks>
</Docs>
</Member>
<Member MemberName="SaveAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task SaveAsync (Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind kind, string relativePath, System.Threading.CancellationToken cancellationToken = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task SaveAsync(class Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind kind, string relativePath, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Azure.Batch.Conventions.Files.TaskOutputStorage.SaveAsync(Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind,System.String,System.Threading.CancellationToken)" />
<MemberSignature Language="VB.NET" Value="Public Function SaveAsync (kind As TaskOutputKind, relativePath As String, Optional cancellationToken As CancellationToken = Nothing) As Task" />
<MemberSignature Language="F#" Value="member this.SaveAsync : Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task" Usage="taskOutputStorage.SaveAsync (kind, relativePath, cancellationToken)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Batch.Conventions.Files</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="kind" Type="Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind" />
<Parameter Name="relativePath" Type="System.String" />
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
</Parameters>
<Docs>
<param name="kind">A <see cref="T:Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind" /> representing the category under which to
store this file, for example <see cref="F:Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind.TaskOutput" /> or <see cref="F:Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind.TaskLog" />.</param>
<param name="relativePath">The path of the file to save, relative to the current directory.
If the file is in a subdirectory of the current directory, the relative path will be preserved
in blob storage.</param>
<param name="cancellationToken">A <see cref="T:System.Threading.CancellationToken" /> for controlling the lifetime of the asynchronous operation.</param>
<summary>
Saves the specified file to persistent storage.
</summary>
<returns>A <see cref="T:System.Threading.Tasks.Task" /> that represents the asynchronous operation.</returns>
<remarks>If the file is outside the current directory, traversals up the directory tree are removed.
For example, a <paramref name="relativePath" /> of "..\ProcessEnv.cmd" would be treated as "ProcessEnv.cmd"
for the purposes of creating a blob name.</remarks>
<exception cref="T:System.ArgumentNullException">The <paramref name="kind" /> or <paramref name="relativePath" /> argument is null.</exception>
<exception cref="T:System.ArgumentException">The <paramref name="relativePath" /> argument is an absolute path, or is empty.</exception>
</Docs>
</Member>
<Member MemberName="SaveAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task SaveAsync (Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind kind, string sourcePath, string destinationRelativePath, System.Threading.CancellationToken cancellationToken = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task SaveAsync(class Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind kind, string sourcePath, string destinationRelativePath, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Azure.Batch.Conventions.Files.TaskOutputStorage.SaveAsync(Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind,System.String,System.String,System.Threading.CancellationToken)" />
<MemberSignature Language="VB.NET" Value="Public Function SaveAsync (kind As TaskOutputKind, sourcePath As String, destinationRelativePath As String, Optional cancellationToken As CancellationToken = Nothing) As Task" />
<MemberSignature Language="F#" Value="member this.SaveAsync : Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task" Usage="taskOutputStorage.SaveAsync (kind, sourcePath, destinationRelativePath, cancellationToken)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Batch.Conventions.Files</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="kind" Type="Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind" />
<Parameter Name="sourcePath" Type="System.String" />
<Parameter Name="destinationRelativePath" Type="System.String" />
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
</Parameters>
<Docs>
<param name="kind">A <see cref="T:Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind" /> representing the category under which to
store this file, for example <see cref="F:Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind.TaskOutput" /> or <see cref="F:Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind.TaskLog" />.</param>
<param name="sourcePath">The path of the file to save.</param>
<param name="destinationRelativePath">The blob name under which to save the file. This may include a
relative component, such as "pointclouds/pointcloud_0001.txt".</param>
<param name="cancellationToken">A <see cref="T:System.Threading.CancellationToken" /> for controlling the lifetime of the asynchronous operation.</param>
<summary>
Saves the specified file to persistent storage.
</summary>
<returns>A <see cref="T:System.Threading.Tasks.Task" /> that represents the asynchronous operation.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">The <paramref name="kind" />, <paramref name="sourcePath" />, or <paramref name="destinationRelativePath" /> argument is null.</exception>
<exception cref="T:System.ArgumentException">The <paramref name="sourcePath" /> or <paramref name="destinationRelativePath" /> argument is empty.</exception>
</Docs>
</Member>
<Member MemberName="SaveTextAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task SaveTextAsync (Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind kind, string text, string destinationRelativePath, System.Threading.CancellationToken cancellationToken = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task SaveTextAsync(class Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind kind, string text, string destinationRelativePath, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Azure.Batch.Conventions.Files.TaskOutputStorage.SaveTextAsync(Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind,System.String,System.String,System.Threading.CancellationToken)" />
<MemberSignature Language="VB.NET" Value="Public Function SaveTextAsync (kind As TaskOutputKind, text As String, destinationRelativePath As String, Optional cancellationToken As CancellationToken = Nothing) As Task" />
<MemberSignature Language="F#" Value="member this.SaveTextAsync : Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task" Usage="taskOutputStorage.SaveTextAsync (kind, text, destinationRelativePath, cancellationToken)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Batch.Conventions.Files</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="kind" Type="Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind" />
<Parameter Name="text" Type="System.String" />
<Parameter Name="destinationRelativePath" Type="System.String" />
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
</Parameters>
<Docs>
<param name="kind">A <see cref="T:Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind" /> representing the category under which to
store this data, for example <see cref="F:Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind.TaskOutput" /> or <see cref="F:Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind.TaskLog" />.</param>
<param name="text">The text to save.</param>
<param name="destinationRelativePath">The blob name under which to save the text. This may include a
relative component, such as "records/widget42.json".</param>
<param name="cancellationToken">A <see cref="T:System.Threading.CancellationToken" /> for controlling the lifetime of the asynchronous operation.</param>
<summary>
Saves the specified text to persistent storage, without requiring you to create a local file.
</summary>
<returns>A <see cref="T:System.Threading.Tasks.Task" /> that represents the asynchronous operation.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">The <paramref name="kind" />, <paramref name="text" />, or <paramref name="destinationRelativePath" /> argument is null.</exception>
<exception cref="T:System.ArgumentException">The <paramref name="destinationRelativePath" /> argument is empty.</exception>
</Docs>
</Member>
<Member MemberName="SaveTrackedAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<Microsoft.Azure.Batch.Conventions.Files.ITrackedSaveOperation> SaveTrackedAsync (string relativePath);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class Microsoft.Azure.Batch.Conventions.Files.ITrackedSaveOperation> SaveTrackedAsync(string relativePath) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Azure.Batch.Conventions.Files.TaskOutputStorage.SaveTrackedAsync(System.String)" />
<MemberSignature Language="VB.NET" Value="Public Function SaveTrackedAsync (relativePath As String) As Task(Of ITrackedSaveOperation)" />
<MemberSignature Language="F#" Value="member this.SaveTrackedAsync : string -> System.Threading.Tasks.Task<Microsoft.Azure.Batch.Conventions.Files.ITrackedSaveOperation>" Usage="taskOutputStorage.SaveTrackedAsync relativePath" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Batch.Conventions.Files</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task<Microsoft.Azure.Batch.Conventions.Files.ITrackedSaveOperation></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="relativePath" Type="System.String" />
</Parameters>
<Docs>
<param name="relativePath">The path of the file to save, relative to the current directory.
If the file is in a subdirectory of the current directory, the relative path will be preserved
in blob storage.</param>
<summary>
Saves the specified file to persistent storage as a <see cref="F:Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind.TaskLog" />,
and tracks subsequent appends to the file and appends them to the persistent copy too.
</summary>
<returns>An <see cref="T:Microsoft.Azure.Batch.Conventions.Files.ITrackedSaveOperation" /> which will save a file to blob storage and will periodically flush file
appends to the blob until disposed. When disposed, all remaining appends are flushed to
blob storage, and further tracking of file appends is stopped.</returns>
<remarks>
<para>Tracking supports only appends. That is, while a file is being tracked, any data added
at the end is appended to the persistent storage. Changes to data that has already been uploaded
will not be reflected to the persistent store. This method is therefore intended for use only
with files such as (non-rotating) log files where data is only added at the end of the file.
If the entire contents of a file can change, use <see cref="M:Microsoft.Azure.Batch.Conventions.Files.TaskOutputStorage.SaveAsync(Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind,System.String,System.Threading.CancellationToken)" />
and call it periodically or after each change.</para>
<para>If the file is outside the current directory, traversals up the directory tree are removed.
For example, a <paramref name="relativePath" /> of "..\ProcessEnv.cmd" would be treated as "ProcessEnv.cmd"
for the purposes of creating a blob name.</para>
</remarks>
<exception cref="T:System.ArgumentNullException">The <paramref name="relativePath" /> argument is null.</exception>
<exception cref="T:System.ArgumentException">The <paramref name="relativePath" /> argument is an absolute path, or is empty.</exception>
</Docs>
</Member>
<Member MemberName="SaveTrackedAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<Microsoft.Azure.Batch.Conventions.Files.ITrackedSaveOperation> SaveTrackedAsync (Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind kind, string sourcePath, string destinationRelativePath, TimeSpan flushInterval);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class Microsoft.Azure.Batch.Conventions.Files.ITrackedSaveOperation> SaveTrackedAsync(class Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind kind, string sourcePath, string destinationRelativePath, valuetype System.TimeSpan flushInterval) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Azure.Batch.Conventions.Files.TaskOutputStorage.SaveTrackedAsync(Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind,System.String,System.String,System.TimeSpan)" />
<MemberSignature Language="VB.NET" Value="Public Function SaveTrackedAsync (kind As TaskOutputKind, sourcePath As String, destinationRelativePath As String, flushInterval As TimeSpan) As Task(Of ITrackedSaveOperation)" />
<MemberSignature Language="F#" Value="member this.SaveTrackedAsync : Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind * string * string * TimeSpan -> System.Threading.Tasks.Task<Microsoft.Azure.Batch.Conventions.Files.ITrackedSaveOperation>" Usage="taskOutputStorage.SaveTrackedAsync (kind, sourcePath, destinationRelativePath, flushInterval)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Batch.Conventions.Files</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task<Microsoft.Azure.Batch.Conventions.Files.ITrackedSaveOperation></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="kind" Type="Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind" />
<Parameter Name="sourcePath" Type="System.String" />
<Parameter Name="destinationRelativePath" Type="System.String" />
<Parameter Name="flushInterval" Type="System.TimeSpan" />
</Parameters>
<Docs>
<param name="kind">A <see cref="T:Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind" /> representing the category under which to
store this file, for example <see cref="F:Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind.TaskOutput" /> or <see cref="F:Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind.TaskLog" />.</param>
<param name="sourcePath">The path of the file to save.</param>
<param name="destinationRelativePath">The blob name under which to save the file. This may include a
relative component, such as "pointclouds/pointcloud_0001.txt".</param>
<param name="flushInterval">The interval at which to flush appends to persistent storage.</param>
<summary>
Saves the specified file to persistent storage, and tracks subsequent appends to the file
and appends them to the persistent copy too.
</summary>
<returns>An <see cref="T:Microsoft.Azure.Batch.Conventions.Files.ITrackedSaveOperation" /> which will save a file to blob storage and will periodically flush file
appends to the blob until disposed. When disposed, all remaining appends are flushed to
blob storage, and further tracking of file appends is stopped.</returns>
<remarks>
<para>Tracking supports only appends. That is, while a file is being tracked, any data added
at the end is appended to the persistent storage. Changes to data that has already been uploaded
will not be reflected to the persistent store. This method is therefore intended for use only
with files such as (non-rotating) log files where data is only added at the end of the file.
If the entire contents of a file can change, use <see cref="M:Microsoft.Azure.Batch.Conventions.Files.TaskOutputStorage.SaveAsync(Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind,System.String,System.String,System.Threading.CancellationToken)" />
and call it periodically or after each change.</para>
</remarks>
<exception cref="T:System.ArgumentNullException">The <paramref name="kind" />, <paramref name="sourcePath" />, or <paramref name="destinationRelativePath" /> argument is null.</exception>
<exception cref="T:System.ArgumentException">The <paramref name="sourcePath" /> or <paramref name="destinationRelativePath" /> argument is empty.</exception>
</Docs>
</Member>
</Members>
</Type>