update references
This commit is contained in:
23
Atomx.Core/Atomx.Core.csproj
Normal file
23
Atomx.Core/Atomx.Core.csproj
Normal file
@@ -0,0 +1,23 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Services\" />
|
||||
<Folder Include="Configuration\" />
|
||||
<Folder Include="Events\" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Orleans.Server" Version="9.2.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Atomx.Data\Atomx.Data.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
7
Atomx.Core/Class1.cs
Normal file
7
Atomx.Core/Class1.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Atomx.Core
|
||||
{
|
||||
public class Class1
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
15
Atomx.Core/Extensions/CoreServiceCollectionExtensions.cs
Normal file
15
Atomx.Core/Extensions/CoreServiceCollectionExtensions.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace Atomx.Core.Extensions
|
||||
{
|
||||
public static class CoreServiceCollectionExtensions
|
||||
{
|
||||
public static IServiceCollection AddCoreServices(
|
||||
this IServiceCollection services,
|
||||
IConfiguration configuration)
|
||||
{ // Add core services here
|
||||
return services;
|
||||
}
|
||||
}
|
||||
}
|
||||
29
Atomx.Core/Grains/UserGrain.cs
Normal file
29
Atomx.Core/Grains/UserGrain.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using Atomx.Common.Entities;
|
||||
using Atomx.Data;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace Atomx.Core.Grains
|
||||
{
|
||||
|
||||
public interface IUserGrain : IGrainWithIntegerKey
|
||||
{
|
||||
Task<User> GetUserByName(string name);
|
||||
}
|
||||
|
||||
public class UserGrain : Grain, IUserGrain
|
||||
{
|
||||
private readonly ILogger<UserGrain> _logger;
|
||||
private readonly DataContext _dbContext;
|
||||
|
||||
public UserGrain(ILogger<UserGrain> logger, DataContext dbContext)
|
||||
{
|
||||
_logger = logger;
|
||||
_dbContext = dbContext;
|
||||
}
|
||||
|
||||
public Task<User> GetUserByName(string name)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
13
Atomx.Core/Jos/LocalizationJobs.cs
Normal file
13
Atomx.Core/Jos/LocalizationJobs.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Atomx.Core.Jos
|
||||
{
|
||||
/// <summary>
|
||||
/// 多语言本地化任务
|
||||
/// </summary>
|
||||
public class LocalizationJobs
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user