2 writes to _state
Aspire.Hosting (2)
Pipelines\Internal\DeploymentStateManagerBase.cs (2)
84_state = await LoadStateFromStorageAsync(cancellationToken).ConfigureAwait(false); 369_state = null;
11 references to _state
Aspire.Hosting (11)
Pipelines\Internal\DeploymentStateManagerBase.cs (11)
79if (_isStateLoaded && _state is not null) 81return _state; 87return _state; 192var sectionData = GetSectionState(_state, sectionName, includeLegacyState); 250Debug.Assert(_state is not null); 257SetNestedPropertyValue(_state, section.SectionName, section.Data.DeepClone().AsObject()); 258await SaveStateToStorageAsync(_state, section.SectionName, section.OriginalData, cancellationToken).ConfigureAwait(false); 271Debug.Assert(_state is not null); 278SetNestedPropertyValue(_state, section.SectionName, null); 279await SaveStateToStorageAsync(_state, section.SectionName, section.OriginalData, cancellationToken).ConfigureAwait(false); 292if (_state is null)