-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#861 Refactor ILogChronicle.GetFactsAsync(LogChronicleFactFilter)
- Loading branch information
Showing
6 changed files
with
128 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/*<FILE_LICENSE> | ||
* Azos (A to Z Application Operating System) Framework | ||
* The A to Z Foundation (a.k.a. Azist) licenses this file to you under the MIT license. | ||
* See the LICENSE file in the project root for more information. | ||
</FILE_LICENSE>*/ | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
using Azos.Apps.Injection; | ||
using Azos.Data; | ||
using Azos.Data.AST; | ||
using Azos.Data.Business; | ||
using Azos.Log; | ||
using Azos.Serialization.Bix; | ||
using Azos.Time; | ||
|
||
namespace Azos.Sky.Chronicle | ||
{ | ||
[Bix("a06fb712-7e64-435e-8325-f28d67a544e3")] | ||
[Schema(Description = "Provides model for filtering log chronicles for facts")] | ||
public sealed class LogChronicleFactFilter : FilterModel<IEnumerable<Fact>> | ||
{ | ||
[Field(required: true, description: "Log message filter which facts are based on")] | ||
public LogChronicleFilter LogFilter { get; set; } | ||
|
||
[InjectModule] ILogChronicle m_Chronicle; | ||
|
||
protected async override Task<SaveResult<IEnumerable<Fact>>> DoSaveAsync() | ||
=> new SaveResult<IEnumerable<Fact>>(await m_Chronicle.GetFactsAsync(this).ConfigureAwait(false)); | ||
} | ||
|
||
} |
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