Skip to content

Commit

Permalink
Release candidate 1
Browse files Browse the repository at this point in the history
  • Loading branch information
andrueastman committed Dec 15, 2022
1 parent b41c043 commit 489e522
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .azure-pipelines/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,12 @@ stages:
pool:
vmImage: ubuntu-latest
steps:
# Install the nuget tool.
- task: NuGetToolInstaller@0
displayName: 'Use NuGet >=5.2.0'
inputs:
versionSpec: '>=5.2.0'
checkLatest: true
- task: DownloadPipelineArtifact@2
displayName: Download nupkg from artifacts
inputs:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

## [1.0.0-rc.1] - 2022-12-15

### Changed

- Release candidate 1

## [1.0.0-preview.19] - 2022-12-13

### Changed
Expand Down
9 changes: 7 additions & 2 deletions src/Microsoft.Kiota.Abstractions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<Deterministic>true</Deterministic>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>preview.19</VersionSuffix>
<VersionSuffix>rc.1</VersionSuffix>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<SignAssembly>false</SignAssembly>
<DelaySign>false</DelaySign>
Expand All @@ -23,10 +23,11 @@
<!-- Enable this line once we go live to prevent breaking changes -->
<!-- <PackageValidationBaselineVersion>1.0.0</PackageValidationBaselineVersion> -->
<PackageReleaseNotes>
- Adds support for multi-valued headers
- Release candidate 1.
</PackageReleaseNotes>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
Expand All @@ -44,5 +45,9 @@
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
<None Include="..\README.md">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions src/store/InMemoryBackingStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class InMemoryBackingStore : IBackingStore
/// </summary>
public bool ReturnOnlyChangedValues { get; set; }
private readonly Dictionary<string, Tuple<bool, object>> store = new();
private Dictionary<string, Action<string, object, object>> subscriptions = new();
private readonly Dictionary<string, Action<string, object, object>> subscriptions = new();

/// <summary>
/// Gets the specified object with the given key from the store.
Expand Down Expand Up @@ -74,7 +74,7 @@ public void Set<T>(string key, T value)
}
else if(value is ICollection collectionValues)
{// if its the first time adding a IBackedModel collection property to the store, subscribe to item properties' BackingStores and use the events to flag the collection property is "dirty"
collectionValues.OfType<IBackedModel>().ToList().ForEach(model => model.BackingStore?.Subscribe((keyString, oldObject, newObject) => Set(key, value))); ;
collectionValues.OfType<IBackedModel>().ToList().ForEach(model => model.BackingStore?.Subscribe((keyString, oldObject, newObject) => Set(key, value)));
}

foreach(var sub in subscriptions.Values)
Expand Down

0 comments on commit 489e522

Please sign in to comment.