You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
361 B
16 lines
361 B
2 years ago
|
namespace Cis.Application.Core;
|
||
|
|
||
|
public static class InstanceCenter
|
||
|
{
|
||
|
static InstanceCenter()
|
||
|
{
|
||
|
// 静态构造函数只执行一次
|
||
|
// 主动注册全局单例服务
|
||
|
App.GetService<CameraDataCenter>(App.RootServices);
|
||
|
}
|
||
|
|
||
|
public static void Init()
|
||
|
{
|
||
|
// 空函数,意在初始化静态构造函数
|
||
|
}
|
||
|
}
|