public static Unity.Profiling.ProfilerMarker GetMarker(MarkerId id) { return(k_Markers[(int)id]); }
public static MarkerStub GetMarker(MarkerId id) { return(new MarkerStub()); }
public async Task Assert() { const int delayIncrement = 750; const int maximumDelay = delayIncrement * 120; CloudStorageAccount storageAccount = CloudStorageAccount.Parse(AbstractIntegrationTest.Settings.StorageConnectionString); CloudTableClient tableClient = storageAccount.CreateCloudTableClient(); CloudTable markerTable = tableClient.GetTableReference("markers"); int totalDelay = 0; MarkerTableEntity marker = null; do { await Task.Delay(delayIncrement); totalDelay += delayIncrement; marker = (MarkerTableEntity)(await markerTable.ExecuteAsync(TableOperation.Retrieve <MarkerTableEntity>(MarkerId.ToString(), string.Empty)))?.Result; } while (totalDelay < maximumDelay && marker == null); Xunit.Assert.NotNull(marker); Xunit.Assert.Equal(Value, marker.Value); }