GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - AndroThink/WebJobCore: Library that help in configuring new dot net core web job project

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
AndroThink.WebJob.Core
AndroThink.WebJob.Core
 
 
.gitignore
.gitignore
 
 
AndroThink.WebJob.Core.sln
AndroThink.WebJob.Core.sln
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 

Repository files navigation

AndroThink.WebJob.Core Nuget

Library that help in configuring new dot net core web job project

How to use

In Your Control

var job = CoreWebJob.Create("appsettings.json", true)
    .ConfigureWebJobs(options =>
    {

    }).ConfigureLogging((context, logging) =>
    {
        logging.AddConsole();
        logging.SetMinimumLevel(LogLevel.Trace);
    })
    .ConfigureServices((context, services) =>
    {
        services.AddSingleton<IMailSender,MailSender>();

        services.AddHostedService<TestService>(); // this inherites from BaseHostedService OR BaseBackgroundService
    })
    .WithFileLogger("Logs");

await job.RunAsync((sender, args) =>
{
    Exception ex = (Exception)args.ExceptionObject;

    Console.WriteLine("Webjob exception ==> " + ex.ToString());
});

About

Library that help in configuring new dot net core web job project

Resources

Readme
Apache-2.0 license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.