Skip to content

Commit 7c07d30

Browse files
committed
Add core project.
1 parent 9addb7d commit 7c07d30

File tree

5 files changed

+135
-0
lines changed

5 files changed

+135
-0
lines changed

Serilog.Ui.sln

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.29920.165
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{ACA69857-2E3E-468C-B0B0-A86852E3492D}"
7+
EndProject
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Serilog.Ui.Web", "src\Serilog.Ui.Web\Serilog.Ui.Web.csproj", "{3BF751F9-67CA-47F2-84E0-068344A8F306}"
9+
EndProject
10+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleWebApplication", "src\SampleWebApplication\SampleWebApplication.csproj", "{F1729252-4E41-4A79-8F89-560922668E87}"
11+
EndProject
12+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Serilog.Ui.MsSqlServerProvider", "src\Serilog.Ui.MsSqlServerProvider\Serilog.Ui.MsSqlServerProvider.csproj", "{55C49567-1879-4FA7-B15F-033DA89B8B1B}"
13+
EndProject
14+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Serilog.Ui.Core", "src\Serilog.Ui.Core\Serilog.Ui.Core.csproj", "{0862FA16-35A3-4CF9-B797-67F70F6CFB8B}"
15+
EndProject
16+
Global
17+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
18+
Debug|Any CPU = Debug|Any CPU
19+
Release|Any CPU = Release|Any CPU
20+
EndGlobalSection
21+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
22+
{3BF751F9-67CA-47F2-84E0-068344A8F306}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23+
{3BF751F9-67CA-47F2-84E0-068344A8F306}.Debug|Any CPU.Build.0 = Debug|Any CPU
24+
{3BF751F9-67CA-47F2-84E0-068344A8F306}.Release|Any CPU.ActiveCfg = Release|Any CPU
25+
{3BF751F9-67CA-47F2-84E0-068344A8F306}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{F1729252-4E41-4A79-8F89-560922668E87}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{F1729252-4E41-4A79-8F89-560922668E87}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{F1729252-4E41-4A79-8F89-560922668E87}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{F1729252-4E41-4A79-8F89-560922668E87}.Release|Any CPU.Build.0 = Release|Any CPU
30+
{55C49567-1879-4FA7-B15F-033DA89B8B1B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
31+
{55C49567-1879-4FA7-B15F-033DA89B8B1B}.Debug|Any CPU.Build.0 = Debug|Any CPU
32+
{55C49567-1879-4FA7-B15F-033DA89B8B1B}.Release|Any CPU.ActiveCfg = Release|Any CPU
33+
{55C49567-1879-4FA7-B15F-033DA89B8B1B}.Release|Any CPU.Build.0 = Release|Any CPU
34+
{0862FA16-35A3-4CF9-B797-67F70F6CFB8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
35+
{0862FA16-35A3-4CF9-B797-67F70F6CFB8B}.Debug|Any CPU.Build.0 = Debug|Any CPU
36+
{0862FA16-35A3-4CF9-B797-67F70F6CFB8B}.Release|Any CPU.ActiveCfg = Release|Any CPU
37+
{0862FA16-35A3-4CF9-B797-67F70F6CFB8B}.Release|Any CPU.Build.0 = Release|Any CPU
38+
EndGlobalSection
39+
GlobalSection(SolutionProperties) = preSolution
40+
HideSolutionNode = FALSE
41+
EndGlobalSection
42+
GlobalSection(NestedProjects) = preSolution
43+
{3BF751F9-67CA-47F2-84E0-068344A8F306} = {ACA69857-2E3E-468C-B0B0-A86852E3492D}
44+
{F1729252-4E41-4A79-8F89-560922668E87} = {ACA69857-2E3E-468C-B0B0-A86852E3492D}
45+
{55C49567-1879-4FA7-B15F-033DA89B8B1B} = {ACA69857-2E3E-468C-B0B0-A86852E3492D}
46+
{0862FA16-35A3-4CF9-B797-67F70F6CFB8B} = {ACA69857-2E3E-468C-B0B0-A86852E3492D}
47+
EndGlobalSection
48+
GlobalSection(ExtensibilityGlobals) = postSolution
49+
SolutionGuid = {88374732-FEAD-4375-9CF1-75331A37CF07}
50+
EndGlobalSection
51+
EndGlobal
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System.Collections.Generic;
2+
using System.Threading.Tasks;
3+
4+
namespace Serilog.Ui.Core
5+
{
6+
public interface IDataProvider
7+
{
8+
Task<(IEnumerable<LogModel>, int)> FetchDataAsync(int page, int count);
9+
}
10+
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
using Microsoft.Extensions.DependencyInjection;
2+
3+
namespace Serilog.Ui.Core
4+
{
5+
public interface IDataProviderOptionBuilderInfrastructure
6+
{
7+
}
8+
9+
public class DataProviderOptionBuilder
10+
{
11+
//private DataProviderOption _options;
12+
13+
//public DataProviderOptionBuilder(DataProviderOption options)
14+
//{
15+
// Options = options;
16+
//}
17+
18+
/// <summary>
19+
/// Gets the options being configured.
20+
/// </summary>
21+
// public virtual DataProviderOption Options { get; }
22+
23+
public DataProviderOptionBuilder(IServiceCollection services)
24+
{
25+
Services = services;
26+
}
27+
28+
public IServiceCollection Services { get; }
29+
}
30+
31+
public class DataProviderOption
32+
{
33+
//private RelationalDbOptions _relationalDbOptions;
34+
35+
//public DataProviderOption(RelationalDbOptions relationalDbOptions)
36+
//{
37+
// _relationalDbOptions = relationalDbOptions;
38+
//}
39+
}
40+
41+
public class RelationalDbOptions
42+
{
43+
public string ConnectionString { get; set; }
44+
45+
public string TableName { get; set; }
46+
47+
public string Schema { get; set; }
48+
}
49+
}

src/Serilog.Ui.Core/LogModel.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using System;
2+
3+
namespace Serilog.Ui.Core
4+
{
5+
public class LogModel
6+
{
7+
public string Level { get; set; }
8+
9+
public string Message { get; set; }
10+
11+
public DateTime Timestamp { get; set; }
12+
13+
public string Exception { get; set; }
14+
}
15+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netstandard2.0</TargetFramework>
5+
</PropertyGroup>
6+
7+
<ItemGroup>
8+
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="3.1.3" />
9+
</ItemGroup>
10+
</Project>

0 commit comments

Comments
 (0)