Skip to content

Commit 2a574e7

Browse files
Final prep before release.
1 parent cffd071 commit 2a574e7

27 files changed

Lines changed: 4707 additions & 4750 deletions

Channel/AsChannel.cs

Lines changed: 634 additions & 634 deletions
Large diffs are not rendered by default.

Channel/CreateChannel.cs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,25 @@ namespace Open.Database.Extensions;
66

77
public static partial class ChannelDbExtensions
88
{
9-
internal static Channel<T> CreateChannel<T>(int capacity = -1, bool singleReader = false, bool singleWriter = true)
10-
{
11-
if (capacity == 0) throw new ArgumentOutOfRangeException(nameof(capacity), capacity, "Cannot be zero.");
12-
if (capacity < -1) throw new ArgumentOutOfRangeException(nameof(capacity), capacity, "Must greater than zero or equal to negative one (unbounded).");
9+
internal static Channel<T> CreateChannel<T>(int capacity = -1, bool singleReader = false, bool singleWriter = true)
10+
{
11+
if (capacity == 0) throw new ArgumentOutOfRangeException(nameof(capacity), capacity, "Cannot be zero.");
12+
if (capacity < -1) throw new ArgumentOutOfRangeException(nameof(capacity), capacity, "Must greater than zero or equal to negative one (unbounded).");
1313
Contract.EndContractBlock();
1414

15-
return capacity > 0
16-
? Channel.CreateBounded<T>(new BoundedChannelOptions(capacity)
17-
{
18-
SingleWriter = singleWriter,
19-
SingleReader = singleReader,
20-
AllowSynchronousContinuations = true,
21-
FullMode = BoundedChannelFullMode.Wait
22-
})
23-
: Channel.CreateUnbounded<T>(new UnboundedChannelOptions
24-
{
25-
SingleWriter = singleWriter,
26-
SingleReader = singleReader,
27-
AllowSynchronousContinuations = true
28-
});
29-
}
15+
return capacity > 0
16+
? Channel.CreateBounded<T>(new BoundedChannelOptions(capacity)
17+
{
18+
SingleWriter = singleWriter,
19+
SingleReader = singleReader,
20+
AllowSynchronousContinuations = true,
21+
FullMode = BoundedChannelFullMode.Wait
22+
})
23+
: Channel.CreateUnbounded<T>(new UnboundedChannelOptions
24+
{
25+
SingleWriter = singleWriter,
26+
SingleReader = singleReader,
27+
AllowSynchronousContinuations = true
28+
});
29+
}
3030
}

Channel/Open.Database.Extensions.Channel.csproj

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,28 @@
2222
<PackageIcon>logo.png</PackageIcon>
2323
<AnalysisLevel>latest</AnalysisLevel>
2424
<EnableNETAnalyzers>True</EnableNETAnalyzers>
25+
<PackageReadmeFile>README.md</PackageReadmeFile>
2526
</PropertyGroup>
2627

27-
<ItemGroup>
28-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
29-
</ItemGroup>
30-
31-
<ItemGroup>
32-
<Compile Remove="Extensions.ExpressiveCommandBase.cs" />
33-
<Compile Remove="QueryResult.cs" />
34-
</ItemGroup>
35-
36-
<ItemGroup>
37-
<None Include="..\logo.png">
38-
<Pack>True</Pack>
39-
<PackagePath></PackagePath>
40-
</None>
41-
</ItemGroup>
28+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
29+
<DocumentationFile>Documentation.xml</DocumentationFile>
30+
</PropertyGroup>
4231

4332
<ItemGroup>
33+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
4434
<PackageReference Include="Open.ChannelExtensions" Version="6.0.0" />
4535
<PackageReference Include="Open.Database.Extensions.Core" Version="7.0.0" />
4636
</ItemGroup>
4737

48-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
49-
<DocumentationFile>Documentation.xml</DocumentationFile>
50-
</PropertyGroup>
38+
<ItemGroup>
39+
<None Include="..\logo.png">
40+
<Pack>True</Pack>
41+
<PackagePath></PackagePath>
42+
</None>
43+
<None Include="..\README.md">
44+
<Pack>True</Pack>
45+
<PackagePath>\</PackagePath>
46+
</None>
47+
</ItemGroup>
5148

5249
</Project>

0 commit comments

Comments
 (0)