var builder = Host.CreateApplicationBuilder(args);
// TCP Server
builder.Services.AddTcpServer(options =>
{
options.ListenAnyIP<SampleHandler>(18888);
});
builder.Services.AddSingleton<ICommand, ExitCommand>();
builder.Services.AddSingleton<ICommand, GetCommand>();
builder.Services.AddSingleton<ICommand, SetCommand>();
// Cron Job
builder.Services.AddJobScheduler(options =>
{
options.UseJob<SampleJob>("*/1 * * * *");
});
// Service
builder.Services.AddSingleton<FeatureService>();
builder.Build().Run();
-
Notifications
You must be signed in to change notification settings - Fork 0
Hosted service extension.
License
usausa/hosted-service-extension
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Hosted service extension.
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published