private async Task <SecretStore> GetOrCreateStoreAsync(CancellationToken cancellationToken) { var userSecretsId = await _propertiesProvider.GetCommonProperties().GetEvaluatedPropertyValueAsync(UserSecretsPropertyName); if (string.IsNullOrEmpty(userSecretsId)) { userSecretsId = Guid.NewGuid().ToString(); await _propertiesProvider.GetCommonProperties().SetPropertyValueAsync(UserSecretsPropertyName, userSecretsId); } var store = new SecretStore(userSecretsId); await store.LoadAsync(cancellationToken); return(store); }
public virtual IProjectProperties GetCommonProperties() => DelegatedProvider.GetCommonProperties();
public Task <string> GetPropertyAsync(string propertyName) => _projectPropertiesProvider.GetCommonProperties().GetEvaluatedPropertyValueAsync(propertyName);