-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11538 from umbraco/v9/feature/merge-v8_29-10-2021
V9: Merge v8 29-10-2021
- Loading branch information
Showing
69 changed files
with
1,674 additions
and
1,394 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,39 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Umbraco.Core.Collections | ||
namespace Umbraco.Cms.Core.Collections | ||
{ | ||
/// <summary> | ||
/// Collection that can be both a queue and a stack. | ||
/// Collection that can be both a queue and a stack. | ||
/// </summary> | ||
/// <typeparam name="T"></typeparam> | ||
public class StackQueue<T> | ||
{ | ||
private readonly LinkedList<T> _linkedList = new LinkedList<T>(); | ||
private readonly LinkedList<T> _linkedList = new(); | ||
|
||
public void Clear() | ||
{ | ||
_linkedList.Clear(); | ||
} | ||
public int Count => _linkedList.Count; | ||
|
||
public void Push(T obj) | ||
{ | ||
_linkedList.AddFirst(obj); | ||
} | ||
public void Clear() => _linkedList.Clear(); | ||
|
||
public void Enqueue(T obj) | ||
{ | ||
_linkedList.AddFirst(obj); | ||
} | ||
public void Push(T obj) => _linkedList.AddFirst(obj); | ||
|
||
public void Enqueue(T obj) => _linkedList.AddFirst(obj); | ||
|
||
public T Pop() | ||
{ | ||
var obj = _linkedList.First.Value; | ||
T obj = _linkedList.First.Value; | ||
_linkedList.RemoveFirst(); | ||
return obj; | ||
} | ||
|
||
public T Dequeue() | ||
{ | ||
var obj = _linkedList.Last.Value; | ||
T obj = _linkedList.Last.Value; | ||
_linkedList.RemoveLast(); | ||
return obj; | ||
} | ||
|
||
public T PeekStack() | ||
{ | ||
return _linkedList.First.Value; | ||
} | ||
public T PeekStack() => _linkedList.First.Value; | ||
|
||
public T PeekQueue() | ||
{ | ||
return _linkedList.Last.Value; | ||
} | ||
|
||
public int Count | ||
{ | ||
get | ||
{ | ||
return _linkedList.Count; | ||
} | ||
} | ||
public T PeekQueue() => _linkedList.Last.Value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
namespace Umbraco.Cms.Core | ||
{ | ||
public static partial class Constants | ||
{ | ||
public static class Sql | ||
{ | ||
/// <summary> | ||
/// The maximum amount of parameters that can be used in a query. | ||
/// </summary> | ||
/// <remarks> | ||
/// The actual limit is 2100 | ||
/// (https://docs.microsoft.com/en-us/sql/sql-server/maximum-capacity-specifications-for-sql-server), | ||
/// but we want to ensure there's room for additional parameters if this value is used to create groups/batches. | ||
/// </remarks> | ||
public const int MaxParameterCount = 2000; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,61 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<RootNamespace>Umbraco.Cms.Core</RootNamespace> | ||
<Product>Umbraco CMS</Product> | ||
<PackageId>Umbraco.Cms.Core</PackageId> | ||
<Title>Umbraco CMS Core</Title> | ||
<Description>Contains the core assembly needed to run Umbraco Cms. This package only contains the assembly, and can be used for package development. Use the template in the Umbraco.Templates package to setup Umbraco</Description> | ||
<Product>Umbraco CMS</Product> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<RootNamespace>Umbraco.Cms.Core</RootNamespace> | ||
<Product>Umbraco CMS</Product> | ||
<PackageId>Umbraco.Cms.Core</PackageId> | ||
<Title>Umbraco CMS Core</Title> | ||
<Description>Contains the core assembly needed to run Umbraco Cms. This package only contains the assembly, and can be used for package development. Use the template in the Umbraco.Templates package to setup Umbraco</Description> | ||
<Product>Umbraco CMS</Product> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' "> | ||
<DocumentationFile>bin\Release\Umbraco.Core.xml</DocumentationFile> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' "> | ||
<DocumentationFile>bin\Release\Umbraco.Core.xml</DocumentationFile> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="5.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="5.0.10" /> | ||
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="5.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.Logging" Version="5.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.Options" Version="5.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="5.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.Options.DataAnnotations" Version="5.0.0" /> | ||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" /> | ||
<PackageReference Include="System.Reflection.Emit.Lightweight" Version="4.7.0" /> | ||
<PackageReference Include="System.Runtime.Caching" Version="5.0.0" /> | ||
<PackageReference Include="Umbraco.Code" Version="1.2.0"> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="5.0.0"/> | ||
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="5.0.10"/> | ||
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="5.0.0"/> | ||
<PackageReference Include="Microsoft.Extensions.Logging" Version="5.0.0"/> | ||
<PackageReference Include="Microsoft.Extensions.Options" Version="5.0.0"/> | ||
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="5.0.0"/> | ||
<PackageReference Include="Microsoft.Extensions.Options.DataAnnotations" Version="5.0.0"/> | ||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0"/> | ||
<PackageReference Include="System.Reflection.Emit.Lightweight" Version="4.7.0"/> | ||
<PackageReference Include="System.Runtime.Caching" Version="5.0.0"/> | ||
<PackageReference Include="Umbraco.Code" Version="1.2.0"> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> | ||
<_Parameter1>Umbraco.Tests</_Parameter1> | ||
</AssemblyAttribute> | ||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> | ||
<_Parameter1>Umbraco.Tests.Common</_Parameter1> | ||
</AssemblyAttribute> | ||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> | ||
<_Parameter1>Umbraco.Tests.UnitTests</_Parameter1> | ||
</AssemblyAttribute> | ||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> | ||
<_Parameter1>Umbraco.Tests.Benchmarks</_Parameter1> | ||
</AssemblyAttribute> | ||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> | ||
<_Parameter1>Umbraco.Tests.Integration</_Parameter1> | ||
</AssemblyAttribute> | ||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> | ||
<_Parameter1>DynamicProxyGenAssembly2</_Parameter1> | ||
</AssemblyAttribute> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> | ||
<_Parameter1>Umbraco.Tests</_Parameter1> | ||
</AssemblyAttribute> | ||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> | ||
<_Parameter1>Umbraco.Tests.Common</_Parameter1> | ||
</AssemblyAttribute> | ||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> | ||
<_Parameter1>Umbraco.Tests.UnitTests</_Parameter1> | ||
</AssemblyAttribute> | ||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> | ||
<_Parameter1>Umbraco.Tests.Benchmarks</_Parameter1> | ||
</AssemblyAttribute> | ||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> | ||
<_Parameter1>Umbraco.Tests.Integration</_Parameter1> | ||
</AssemblyAttribute> | ||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> | ||
<_Parameter1>DynamicProxyGenAssembly2</_Parameter1> | ||
</AssemblyAttribute> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<EmbeddedResource Include="EmbeddedResources\**\*" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<EmbeddedResource Include="EmbeddedResources\**\*"/> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.