breakpoint
This commit is contained in:
26
Mods/工业数据采集与分析应用分享/Scripts/IDIS_GodotBasedService.cs
Normal file
26
Mods/工业数据采集与分析应用分享/Scripts/IDIS_GodotBasedService.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using BITKit;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using Godot;
|
||||
using IDIS.Services;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace BITFactory;
|
||||
/// <summary>
|
||||
/// 标识码注册与查询服务
|
||||
/// </summary>
|
||||
public partial class IDIS_GodotBasedService:EntityComponent
|
||||
{
|
||||
public override void BuildService(IServiceCollection serviceCollection)
|
||||
{
|
||||
serviceCollection.AddTransient<IDIS_Service, IDIS_Service_SQLite>();
|
||||
}
|
||||
|
||||
public override async void OnStart()
|
||||
{
|
||||
base.OnStart();
|
||||
var service = Entity.ServiceProvider.GetRequiredService<IDIS_Service>();
|
||||
await service.IsExistAsync("123");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user