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"; 61public bool IsAvailable => _statePath is not null; 65if (_statePath is null || _lockPath is null || IsDiskAccessDisabled) 83_statePath); 92if (_stateDirectory is null || _statePath is null || _lockPath is null || IsDiskAccessDisabled) 134_statePath); 148if (!File.Exists(_statePath)) 155if (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); 177var statePath = _statePath