Asgard.IDGen 3.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Asgard.IDGen --version 3.0.1
                    
NuGet\Install-Package Asgard.IDGen -Version 3.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Asgard.IDGen" Version="3.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Asgard.IDGen" Version="3.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Asgard.IDGen" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Asgard.IDGen --version 3.0.1
                    
#r "nuget: Asgard.IDGen, 3.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Asgard.IDGen@3.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Asgard.IDGen&version=3.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Asgard.IDGen&version=3.0.1
                    
Install as a Cake Tool

Asgard.Job

项目简介

Asgard.Job 是 Asgard 框架的任务调度与后台作业执行模块,支持定时任务、延迟任务、分布式调度与任务持久化,适用于微服务和分布式场景下的异步作业管理。兼容 .NET 8,并可与 Asgard 框架其他模块集成。

主要类与接口说明

  • JobManager:任务管理器,负责任务的注册、启动、停止及生命周期管理。
  • JobBase:任务抽象基类,所有自定义任务需继承该类,实现 StartStop 方法。
  • JobInfoItem:任务元数据与实例管理,内部用于存储任务构造器、类型、定时参数等信息。
  • JobTypeEnum:任务类型枚举,支持 Singleton(单例)与 Scoped(每次执行新建)。
  • JobTimerTypeEnum:定时类型枚举,支持 Independent(独立计时)与 Dependent(依赖上次完成)。

快速开始

  1. 在主项目中引用 Asgard.Job:

  2. 创建自定义任务:

    using Asgard.Job;
    using Asgard.Abstract;
    
    public class MyJob : JobBase
    {
        public MyJob(AbsLogger logger) : base(logger) { }
    
        public override async Task Start(AsgardContext context)
        {
            // 任务逻辑
        }
    
        public override async Task Stop(AsgardContext context)
        {
            // 停止逻辑
        }
    }
    
  3. 注册并启动任务:

    var jobManager = new JobManager(loggerProvider);
    jobManager.PushNewJobInfo(typeof(MyJob));
    jobManager.Start();
    

依赖说明

维护者

  • 维护者:Asgard Framework 团队
  • 联系方式:暂无(如需协助请通过主项目渠道反馈)
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Asgard.IDGen:

Package Downloads
Asgard.ConfigCenter

Asgard.ConfigCenter 是阿斯加德框架(Asgard Framework)中的一个模块,负责配置中心相关功能的实现与管理。

Asgard.Hosts.AspNetCore

Asgard.Hosts.AspNetCore 提供基于 ASP.NET Core 的宿主层实现,负责应用启动与依赖注入引导、通用中间件与管道配置、端点路由、gRPC 与 Swagger 集成,以及与 Asgard 框架模块(日志、配置、扩展等)的托管适配。兼容 .NET 8,面向可扩展的微服务与 Web 应用托管。

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.1.9 944 1/16/2026
3.1.8 929 1/15/2026
3.1.7 1,508 12/22/2025
3.1.6 1,818 12/11/2025
3.1.5 1,664 12/7/2025
3.1.4 2,118 12/2/2025
3.1.2 1,702 11/30/2025
3.1.1 1,689 11/30/2025
3.1.0 2,757 11/22/2025
3.0.2 1,791 11/17/2025
3.0.1 2,759 11/14/2025
3.0.0 1,656 11/5/2025