sprints and audit work
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"profiles": {
|
||||
"StellaOps.Platform.WebService": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:52413;http://localhost:52415"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -28,12 +28,12 @@ public sealed class PlatformCache
|
||||
if (ttl <= TimeSpan.Zero)
|
||||
{
|
||||
var value = await factory(cancellationToken).ConfigureAwait(false);
|
||||
return new PlatformCacheResult<T>(value, timeProvider.GetUtcNow(), cached: false, cacheTtlSeconds: 0);
|
||||
return new PlatformCacheResult<T>(value, timeProvider.GetUtcNow(), Cached: false, CacheTtlSeconds: 0);
|
||||
}
|
||||
|
||||
if (cache.TryGetValue(cacheKey, out PlatformCacheEntry<T>? entry) && entry is not null)
|
||||
{
|
||||
return new PlatformCacheResult<T>(entry.Value, entry.DataAsOf, cached: true, cacheTtlSeconds: entry.CacheTtlSeconds);
|
||||
return new PlatformCacheResult<T>(entry.Value, entry.DataAsOf, Cached: true, CacheTtlSeconds: entry.CacheTtlSeconds);
|
||||
}
|
||||
|
||||
var dataAsOf = timeProvider.GetUtcNow();
|
||||
@@ -43,7 +43,7 @@ public sealed class PlatformCache
|
||||
entry = new PlatformCacheEntry<T>(payload, dataAsOf, ttlSeconds);
|
||||
cache.Set(cacheKey, entry, ttl);
|
||||
|
||||
return new PlatformCacheResult<T>(payload, dataAsOf, cached: false, cacheTtlSeconds: ttlSeconds);
|
||||
return new PlatformCacheResult<T>(payload, dataAsOf, Cached: false, CacheTtlSeconds: ttlSeconds);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -131,10 +131,10 @@ public sealed class PlatformHealthService
|
||||
var services = ServiceNames
|
||||
.Select((service, index) => new PlatformHealthServiceStatus(
|
||||
service,
|
||||
status: "healthy",
|
||||
detail: null,
|
||||
checkedAt: now,
|
||||
latencyMs: 10 + (index * 2)))
|
||||
Status: "healthy",
|
||||
Detail: null,
|
||||
CheckedAt: now,
|
||||
LatencyMs: 10 + (index * 2)))
|
||||
.OrderBy(item => item.Service, StringComparer.Ordinal)
|
||||
.ToArray();
|
||||
|
||||
@@ -150,10 +150,10 @@ public sealed class PlatformHealthService
|
||||
return ServiceNames
|
||||
.Select(service => new PlatformDependencyStatus(
|
||||
service,
|
||||
status: "ready",
|
||||
version: "unknown",
|
||||
checkedAt: now,
|
||||
message: null))
|
||||
Status: "ready",
|
||||
Version: "unknown",
|
||||
CheckedAt: now,
|
||||
Message: null))
|
||||
.OrderBy(item => item.Service, StringComparer.Ordinal)
|
||||
.ToArray();
|
||||
}
|
||||
|
||||
@@ -76,8 +76,8 @@ public sealed class PlatformQuotaService
|
||||
return Task.FromResult(new PlatformCacheResult<IReadOnlyList<PlatformQuotaAlert>>(
|
||||
items,
|
||||
now,
|
||||
cached: false,
|
||||
cacheTtlSeconds: 0));
|
||||
Cached: false,
|
||||
CacheTtlSeconds: 0));
|
||||
}
|
||||
|
||||
public Task<PlatformQuotaAlert> CreateAlertAsync(
|
||||
|
||||
Reference in New Issue
Block a user