# Dnc.Core **Repository Path**: null_048_7561/Dnc.Core ## Basic Information - **Project Name**: Dnc.Core - **Description**: 基于StandardLibary的跨平台快速开发框架。 1.0.3:日志默认使用serilog输出到文件; 1.0.4:添加SqlBulkHelper操作批量更新; 1.0.5: 1.架构和入口大量调整,大量使用Extensions重构; 2.Reademe.md添加极简使用说明; 3.去除默认日志,采用默认日志Serilog。 1.0.6:添加大量Helpers和Extensions; 1.0.7:添加任务调度器。 - **Primary Language**: C# - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2022-09-01 - **Last Updated**: 2022-09-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Dnc.Core ## First > install-package Dnc.Core ## Use this in the entry point of your application: ```c# new DefaultFrameworkConstruction() .Build(); ``` ## Using Extensions. > namespace: ```c# using Dnc.Extensions; ``` ## Using Helpers. > namespace: ```c# using Dnc.Helpers; ``` ## Using Dispatcher (Base on Quartz.net) 1. Install-Packget Quartz 2. Define a job like below: ```c# class HelloJob : AbstractJob { public override async Task ExecuteJobAsync(IJobExecutionContext context) { await Task.Run(() => Console.WriteLine($"{DateTime.Now.ToLongTimeString()}")); } } ``` 3. Framework enable dispatcher. ```c# var framework = new DefaultFrameworkConstruction() .UseScheduleCenter() .Build(); framework.ScheduleCenter.RunScheduleAsync().Wait();//sample schedule. framework.ScheduleCenter .CreateAndRunScheduleAsync("gainorloss", "Dnc.WpfApp.Jobs.HelloJob", "* 5 13 ? * *", "Dnc.WpfApp.exe") .Wait(); ```