Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

CodeFunta/atlas

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Atlas

Atlas is a .NET application framework which allows .NET developers to easily write, run, debug, and deploy Windows Services using a robust configuration model.

Atlas can be configured fluently, or through the app.config. Please refer to the Documentation for more advanced configuration options.

Use Nuget? - Atlas is also available via NuGet. It is recommended to use NuGet to get Atlas to ease your upgrade path as new builds are released.

####PM> Install-Package Atlas

###How do I use Atlas?### Simply implement the interface IAmAHostedProcess

public class MyService : IAmAHostedProcess
{
    public void Start()
    {
        // start processing
    }

    public void Stop()
    {
        // stop processing
    }

    public void Pause()
    {
        // pause processing
    }

    public void Resume()
    {
        // resume processing
    }

}

Then configure the Host and start the configuration in your Main() method. Refer to the Documentation for more configuration options.

static void Main(string[] args)
{
    var configuration = Host.Configure<MyService>().WithArguments(args); // creates configuration with defaults

    // then just start the configuration and away you go
    Host.Start(configuration);
}

Last, simply run your .exe from the command line with the arguments you desire. Refer to the Documentation for arguments list.

C:\myservice.exe /console

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages

  • C# 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.