-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* v5.14.1 - *Fixed:* Fixed the manager code-generation to reference parameter `value` as `v`, and output `ThenAsAsync`, correctly. - *Fixed:* Added `ManagerCtorCustom`, `DataSvcCtorCustom` and `DataCtorCustom` to allow the constructor to be implemented as custom, non-generated, by the consuming developer. * Re-gen sample to pass test. * Additional fixes identified during testing. * AdjustsAsync for identifier.
- Loading branch information
Showing
54 changed files
with
351 additions
and
96 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
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
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
22 changes: 22 additions & 0 deletions
22
samples/Demo/Beef.Demo.Business/Data/Generated/ISpecialSauceData.cs
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,22 @@ | ||
/* | ||
* This file is automatically generated; any changes will be lost. | ||
*/ | ||
|
||
#nullable enable | ||
#pragma warning disable | ||
|
||
namespace Beef.Demo.Business.Data; | ||
|
||
/// <summary> | ||
/// Defines the <see cref="SpecialSauce"/> data access. | ||
/// </summary> | ||
public partial interface ISpecialSauceData | ||
{ | ||
/// <summary> | ||
/// Pour. | ||
/// </summary> | ||
Task PourAsync(); | ||
} | ||
|
||
#pragma warning restore | ||
#nullable restore |
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
20 changes: 20 additions & 0 deletions
20
samples/Demo/Beef.Demo.Business/Data/Generated/SpecialSauceData.cs
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,20 @@ | ||
/* | ||
* This file is automatically generated; any changes will be lost. | ||
*/ | ||
|
||
#nullable enable | ||
#pragma warning disable | ||
|
||
namespace Beef.Demo.Business.Data; | ||
|
||
/// <summary> | ||
/// Provides the <see cref="SpecialSauce"/> data access. | ||
/// </summary> | ||
public partial class SpecialSauceData : ISpecialSauceData | ||
{ | ||
/// <inheritdoc/> | ||
public Task PourAsync() => PourOnImplementationAsync(); | ||
} | ||
|
||
#pragma warning restore | ||
#nullable restore |
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,7 @@ | ||
namespace Beef.Demo.Business.Data | ||
{ | ||
public partial class SpecialSauceData | ||
{ | ||
public static Task PourOnImplementationAsync() => Task.CompletedTask; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
samples/Demo/Beef.Demo.Business/DataSvc/Generated/ISpecialSauceDataSvc.cs
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,22 @@ | ||
/* | ||
* This file is automatically generated; any changes will be lost. | ||
*/ | ||
|
||
#nullable enable | ||
#pragma warning disable | ||
|
||
namespace Beef.Demo.Business.DataSvc; | ||
|
||
/// <summary> | ||
/// Defines the <see cref="SpecialSauce"/> data repository services. | ||
/// </summary> | ||
public partial interface ISpecialSauceDataSvc | ||
{ | ||
/// <summary> | ||
/// Pour. | ||
/// </summary> | ||
Task PourAsync(); | ||
} | ||
|
||
#pragma warning restore | ||
#nullable restore |
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
20 changes: 20 additions & 0 deletions
20
samples/Demo/Beef.Demo.Business/DataSvc/Generated/SpecialSauceDataSvc.cs
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,20 @@ | ||
/* | ||
* This file is automatically generated; any changes will be lost. | ||
*/ | ||
|
||
#nullable enable | ||
#pragma warning disable | ||
|
||
namespace Beef.Demo.Business.DataSvc; | ||
|
||
/// <summary> | ||
/// Provides the <see cref="SpecialSauce"/> data repository services. | ||
/// </summary> | ||
public partial class SpecialSauceDataSvc : ISpecialSauceDataSvc | ||
{ | ||
/// <inheritdoc/> | ||
public Task PourAsync() => PourOnImplementationAsync(); | ||
} | ||
|
||
#pragma warning restore | ||
#nullable restore |
9 changes: 9 additions & 0 deletions
9
samples/Demo/Beef.Demo.Business/DataSvc/SpecialSauceDataSvc.cs
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,9 @@ | ||
namespace Beef.Demo.Business.DataSvc | ||
{ | ||
public partial class SpecialSauceDataSvc(ISpecialSauceData data) | ||
{ | ||
private readonly ISpecialSauceData _data = data.ThrowIfNull(); | ||
|
||
public Task PourOnImplementationAsync() => _data.PourAsync(); | ||
} | ||
} |
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
22 changes: 22 additions & 0 deletions
22
samples/Demo/Beef.Demo.Business/Generated/ISpecialSauceManager.cs
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,22 @@ | ||
/* | ||
* This file is automatically generated; any changes will be lost. | ||
*/ | ||
|
||
#nullable enable | ||
#pragma warning disable | ||
|
||
namespace Beef.Demo.Business; | ||
|
||
/// <summary> | ||
/// Defines the <see cref="SpecialSauce"/> business functionality. | ||
/// </summary> | ||
public partial interface ISpecialSauceManager | ||
{ | ||
/// <summary> | ||
/// Pour. | ||
/// </summary> | ||
Task PourAsync(); | ||
} | ||
|
||
#pragma warning restore | ||
#nullable restore |
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
34 changes: 34 additions & 0 deletions
34
samples/Demo/Beef.Demo.Business/Generated/SpecialSauceManager.cs
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,34 @@ | ||
/* | ||
* This file is automatically generated; any changes will be lost. | ||
*/ | ||
|
||
#nullable enable | ||
#pragma warning disable | ||
|
||
namespace Beef.Demo.Business; | ||
|
||
/// <summary> | ||
/// Provides the <see cref="SpecialSauce"/> business functionality. | ||
/// </summary> | ||
public partial class SpecialSauceManager : ISpecialSauceManager | ||
{ | ||
private readonly ISpecialSauceDataSvc _dataService; | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="SpecialSauceManager"/> class. | ||
/// </summary> | ||
/// <param name="dataService">The <see cref="ISpecialSauceDataSvc"/>.</param> | ||
public SpecialSauceManager(ISpecialSauceDataSvc dataService) | ||
{ _dataService = dataService.ThrowIfNull(); SpecialSauceManagerCtor(); } | ||
|
||
partial void SpecialSauceManagerCtor(); // Enables additional functionality to be added to the constructor. | ||
|
||
/// <inheritdoc/> | ||
public Task PourAsync() => ManagerInvoker.Current.InvokeAsync(this, async (_, ct) => | ||
{ | ||
await _dataService.PourAsync().ConfigureAwait(false); | ||
}, InvokerArgs.Unspecified); | ||
} | ||
|
||
#pragma warning restore | ||
#nullable restore |
Oops, something went wrong.