コード例 #1
0
ファイル: Integration.cs プロジェクト: rasupit/Baki
 public void Install_Should_Install_When_Provide_ServiceName_Only()
 {
     var cfg = new InstallConfig("MyService");
     var path = @"C:\Users\Ricky\My Projects\Baki\src\Samples\Kakatua\bin\Debug\Kakatua.exe";
     var svc = new WindowsServiceSelfService(cfg, path);
     svc.Install();
 }
コード例 #2
0
ファイル: Integration.cs プロジェクト: rasupit/Baki
        public void Install_Should_Install()
        {
            var cfg = new InstallConfig("MyService")
                          {
                              DisplayName = "My DisplayName",
                              Description = "My Description",
                              Account = ServiceAccount.LocalSystem
                          };
            var path = @"C:\Users\Ricky\My Projects\Baki\src\Samples\Kakatua\bin\Debug\Kakatua.exe";
            var svc = new WindowsServiceSelfService(cfg, path);
            svc.Install();

            svc.Uninstall();
        }
コード例 #3
0
 public InteractiveCommandService(WindowsServiceSelfService serviceSelfService)
 {
     _serviceSelfService = serviceSelfService;
 }