-
Notifications
You must be signed in to change notification settings - Fork 48
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 #706 from SteveDunn/bson-markers
Generate BSON serialisers for types in other projects
- Loading branch information
Showing
5,544 changed files
with
1,099,524 additions
and
648,342 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
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 |
---|---|---|
|
@@ -15,10 +15,8 @@ jobs: | |
- uses: actions/[email protected] | ||
with: | ||
dotnet-version: | | ||
9.0.x | ||
8.0.x | ||
7.0.x | ||
6.0.x | ||
5.0.x | ||
3.1.x | ||
- name: Build and Test | ||
run: ./Build.ps1 | ||
|
@@ -31,10 +29,8 @@ jobs: | |
- uses: actions/[email protected] | ||
with: | ||
dotnet-version: | | ||
9.0.x | ||
8.0.x | ||
7.0.x | ||
6.0.x | ||
5.0.x | ||
3.1.x | ||
- name: Build and Test | ||
run: ./Build.ps1 | ||
|
@@ -47,7 +43,7 @@ jobs: | |
- uses: actions/[email protected] | ||
with: | ||
dotnet-version: | | ||
8.0.x | ||
9.0.x | ||
- name: Run Snapshots | ||
run: ./RunSnapshots.ps1 | ||
shell: pwsh | ||
|
@@ -59,10 +55,8 @@ jobs: | |
- uses: actions/[email protected] | ||
with: | ||
dotnet-version: | | ||
9.0.x | ||
8.0.x | ||
7.0.x | ||
6.0.x | ||
5.0.x | ||
3.1.x | ||
- name: Build and Test | ||
run: ./Build.ps1 | ||
|
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 |
---|---|---|
|
@@ -41,21 +41,14 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup dotnet 8.0 | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: '8.0.x' | ||
- name: Setup dotnet 7.0 | ||
- name: Setup dotnet 9.0 | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: '7.0.x' | ||
- name: Setup dotnet 6.0 | ||
dotnet-version: '9.0.x' | ||
- name: Setup dotnet 8.0 | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: '6.0.x' | ||
- uses: actions/[email protected] | ||
with: | ||
dotnet-version: '5.0.x' | ||
dotnet-version: '8.0.x' | ||
- uses: actions/[email protected] | ||
with: | ||
dotnet-version: '3.1.x' | ||
|
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 |
---|---|---|
|
@@ -15,10 +15,8 @@ jobs: | |
- uses: actions/[email protected] | ||
with: | ||
dotnet-version: | | ||
9.0.x | ||
8.0.x | ||
7.0.x | ||
6.0.x | ||
5.0.x | ||
3.1.x | ||
- name: Build and Test | ||
run: ./Build.ps1 | ||
|
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 |
---|---|---|
|
@@ -154,6 +154,7 @@ coverage*.info | |
*.coveragexml | ||
|
||
# NCrunch | ||
.NCrunch_* | ||
_NCrunch_* | ||
.*crunch*.local.xml | ||
nCrunchTemp_* | ||
|
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
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,6 +1,8 @@ | ||
<SolutionConfiguration> | ||
<Settings> | ||
<AllowParallelTestExecution>True</AllowParallelTestExecution> | ||
<EnableRDI>True</EnableRDI> | ||
<RdiConfigured>True</RdiConfigured> | ||
<SolutionConfigured>True</SolutionConfigured> | ||
</Settings> | ||
</SolutionConfiguration> |
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
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<ProjectConfiguration> | ||
<Settings> | ||
<IgnoreThisComponentCompletely>True</IgnoreThisComponentCompletely> | ||
</Settings> | ||
</ProjectConfiguration> |
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,12 @@ | ||
using System; | ||
|
||
namespace Vogen; | ||
|
||
/// <summary> | ||
/// Represent a marker for BSON generation. | ||
/// </summary> | ||
/// <typeparam name="T">The type of the value object.</typeparam> | ||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] | ||
public class BsonSerializerAttribute<T> : ConversionMarkerAttribute | ||
{ | ||
} |
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
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 |
---|---|---|
|
@@ -5,4 +5,5 @@ public enum ConversionMarkerKind | |
Unrecognized, | ||
EFCore, | ||
MessagePack, | ||
Bson, | ||
} |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using Microsoft.CodeAnalysis; | ||
|
||
namespace Vogen; | ||
|
||
public static class DisplayFormats | ||
{ | ||
private static readonly SymbolDisplayMiscellaneousOptions _optionsWheNullabilityIsOn = | ||
SymbolDisplayMiscellaneousOptions.EscapeKeywordIdentifiers | | ||
SymbolDisplayMiscellaneousOptions.UseSpecialTypes | | ||
SymbolDisplayMiscellaneousOptions.IncludeNullableReferenceTypeModifier; | ||
|
||
private static readonly SymbolDisplayMiscellaneousOptions _optionsWheNullabilityIsOff = | ||
SymbolDisplayMiscellaneousOptions.EscapeKeywordIdentifiers | | ||
SymbolDisplayMiscellaneousOptions.UseSpecialTypes; | ||
|
||
public static readonly SymbolDisplayFormat SymbolFormatWhenNullabilityIsOn = | ||
new( | ||
globalNamespaceStyle: SymbolDisplayGlobalNamespaceStyle.Included, | ||
typeQualificationStyle: SymbolDisplayTypeQualificationStyle.NameAndContainingTypesAndNamespaces, | ||
genericsOptions: SymbolDisplayGenericsOptions.IncludeTypeParameters, | ||
miscellaneousOptions: _optionsWheNullabilityIsOn); | ||
|
||
public static readonly SymbolDisplayFormat SymbolFormatWhenNullabilityIsOff = | ||
new( | ||
globalNamespaceStyle: SymbolDisplayGlobalNamespaceStyle.Included, | ||
typeQualificationStyle: SymbolDisplayTypeQualificationStyle.NameAndContainingTypesAndNamespaces, | ||
genericsOptions: SymbolDisplayGenericsOptions.IncludeTypeParameters, | ||
miscellaneousOptions: _optionsWheNullabilityIsOff); | ||
|
||
} |
Oops, something went wrong.