1 write to _statePath
Aspire.Hosting (1)
ApplicationModel\AppHostLocalStateStore.cs (1)
55
_statePath
= Path.Combine(_stateDirectory, $"{identityHash}.json");
12 references to _statePath
Aspire.Hosting (12)
ApplicationModel\AppHostLocalStateStore.cs (12)
56
_lockPath =
_statePath
+ ".lock";
61
public bool IsAvailable =>
_statePath
is not null;
65
if (
_statePath
is null || _lockPath is null || IsDiskAccessDisabled)
83
_statePath
);
92
if (_stateDirectory is null ||
_statePath
is null || _lockPath is null || IsDiskAccessDisabled)
134
_statePath
);
148
if (!File.Exists(
_statePath
))
155
if (JsonNode.Parse(File.ReadAllText(
_statePath
)) is not JsonObject root)
157
_logger.LogWarning("Ignoring invalid AppHost local state file {StatePath}.",
_statePath
);
165
_logger.LogWarning(exception, "Ignoring malformed AppHost local state file {StatePath}.",
_statePath
);
170
_logger.LogWarning(exception, "Ignoring invalid AppHost local state file {StatePath}.",
_statePath
);
177
var statePath =
_statePath