Skip to content
jarzynam edited this page Mar 27, 2018 · 9 revisions

Continuous

Continuous is set of useful nuget packages making managing some parts of Windows easier from c# code. For know almost done are packages for managing:

Prerequisites

  1. Make sure you have powershell 4.0 on your machine
  2. Invoking some methods, like creating windows service required special permissions from your account. So please not be surprised if some permission-exceptions will occur and make sure your account have all the necessary rights. For local debugging session running your visual studio with administrative privileges will be enough.

How to start

The main Nuget package is Continuous.Management - it contains all common functionality for the rest of continuous packages. Don't bother to download it separately - it will be installed and extended by the way.

The most important is ContinouosManagementFactory class which creates core instances for all related packages. Creating new instance of the factory:

var factory = new ContinuousManagementFactory();

If you have installed Continuous.WindowsService nuget package, you can create shell instance for managing windows services:

var _windowsServiceShell = factory.WindowsServiceShell();

If you have installed Continuous.User nuget package, you can create shells for managing local users and their groups:

var _localGroupShell= factory.LocalUserGroup();
var _userShell = factory.UserShell();
Clone this wiki locally