24 references to TryGetMetadata
Microsoft.DotNet.Helix.Sdk (24)
CancelHelixJob.cs (1)
42
if (job.
TryGetMetadata
("HelixJobCancellationToken", out string helixCancellationToken))
CreateXHarnessAndroidWorkItems.cs (6)
92
appPackage.
TryGetMetadata
(MetadataNames.AndroidPackageName, out string androidPackageName);
140
appPackage.
TryGetMetadata
(MetadataNames.Arguments, out string extraArguments);
145
var instrumentationArg = appPackage.
TryGetMetadata
(MetadataNames.AndroidInstrumentationName, out string androidInstrumentationName)
149
var devOutArg = appPackage.
TryGetMetadata
(MetadataNames.DeviceOutputPath, out string deviceOutputPath)
171
appPackage.
TryGetMetadata
(MetadataNames.AndroidInstrumentationName, out string androidInstrumentationName);
172
appPackage.
TryGetMetadata
(MetadataNames.DeviceOutputPath, out string deviceOutputPath);
CreateXHarnessAppleWorkItems.cs (5)
119
if (isAlreadyArchived && appBundleItem.
TryGetMetadata
(MetadataNames.AppBundlePath, out string metadata) && !string.IsNullOrEmpty(metadata))
131
if (!appBundleItem.
TryGetMetadata
(MetadataNames.Target, out string target))
142
if (appBundleItem.
TryGetMetadata
(MetadataNames.LaunchTimeout, out string launchTimeoutProp))
152
if (appBundleItem.
TryGetMetadata
(MetadataNames.IncludesTestRunner, out string includesTestRunnerProp))
166
if (appBundleItem.
TryGetMetadata
(MetadataNames.ResetSimulator, out string resetSimulatorRunnerProp))
CreateXUnitWorkItems.cs (1)
106
xunitProject.
TryGetMetadata
("Arguments", out string arguments);
DownloadFromResultsContainer.cs (1)
70
if (workItem.
TryGetMetadata
("DownloadFilesFromResults", out string files))
FindDotNetCliPackage.cs (3)
147
feed.
TryGetMetadata
("SasToken", out string sasToken);
184
feed.
TryGetMetadata
("sasToken", out string sasToken);
336
feed.
TryGetMetadata
("sasToken", out string sasToken);
SendHelixJob.cs (2)
425
if (workItem.
TryGetMetadata
(MetadataNames.PreCommands, out string workItemPreCommandsString))
441
if (workItem.
TryGetMetadata
(MetadataNames.PostCommands, out string workItemPostCommandsString))
XharnessTaskBase.cs (5)
57
xHarnessAppItem.
TryGetMetadata
(MetadataName.CustomCommands, out string customCommands);
65
if (xHarnessAppItem.
TryGetMetadata
(MetadataName.TestTimeout, out string testTimeoutProp))
75
if (xHarnessAppItem.
TryGetMetadata
(MetadataName.WorkItemTimeout, out string workItemTimeoutProp))
97
if (xHarnessAppItem.
TryGetMetadata
(MetadataName.ExpectedExitCode, out string expectedExitCodeProp))
188
if (item.
TryGetMetadata
(pathMetadataName, out string appPathMetadata) && !string.IsNullOrEmpty(appPathMetadata))