You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nservicebus/hosting/nservicebus-host/installation.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ When running an endpoint within the context of the Visual Studio debugger, the r
10
10
11
11
To retrieve the list of available options for the host, run the following at the command line:
12
12
13
-
```dos
13
+
```shell
14
14
NServiceBus.Host.exe /?
15
15
```
16
16
@@ -22,7 +22,7 @@ NServiceBus.Host.exe /?
22
22
23
23
To install the process as a Windows service, include `/install` as a command line argument to the host. Using `/install` also causes the host to invoke the [installers](/nservicebus/operations/installers.md).
24
24
25
-
```dos
25
+
```shell
26
26
NServiceBus.Host.exe /install
27
27
[/serviceName:<string>]
28
28
[/displayName:<string>]
@@ -40,7 +40,7 @@ NServiceBus.Host.exe /install
40
40
41
41
Here is an example of the `/install` command line:
42
42
43
-
```dos
43
+
```shell
44
44
NServiceBus.Host.exe /install
45
45
/serviceName:"MyPublisher"
46
46
/displayName:"My Publisher Service"
@@ -86,7 +86,7 @@ Configures the name of the endpoint. By default, the endpoint name is the namesp
86
86
87
87
Configures NServiceBus to scan only the specified assemblies. The `scannedAssemblies` parameter must be provided for each assembly to include. E.g.:
88
88
89
-
```dos
89
+
```shell
90
90
NServiceBus.Host.exe /install
91
91
/scannedAssemblies:"NServiceBus.Core"
92
92
/scannedAssemblies:"NServiceBus.Host"
@@ -141,18 +141,18 @@ A [host profile](profiles.md) can be specified as the last parameter, e.g. `NSer
141
141
142
142
To uninstall an endpoint service, call
143
143
144
-
```dos
144
+
```shell
145
145
NServiceBus.Host.exe /uninstall
146
146
```
147
147
148
148
If a service name is specified when installing a service, be sure to pass it to the uninstall command:
When installing the host as a Windows Service, the profiles used during installation are saved, and they are used every time the host starts. In order to install the host with the `Production` and `PerformanceCounters` profiles:
Copy file name to clipboardExpand all lines: nservicebus/hosting/windows-service.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ related:
16
16
17
17
When [self-hosting a Windows Service](/samples/hosting/generic-host/), the startup code is in full control of installation. Windows supports these features though the use of the [Service Control tool](https://technet.microsoft.com/en-us/library/cc754599.aspx). For example, a basic install and uninstall commands would be:
The description can be changed, after the Windows Service has been created, using the [sc description](https://technet.microsoft.com/en-us/library/cc742069.aspx) command.
50
50
51
-
```dos
51
+
```shell
52
52
sc.exe description [ServiceName] [Description]
53
53
sc.exe description SalesEndpoint "Service for hosting the Sales Endpoint"
54
54
```
@@ -58,7 +58,7 @@ sc.exe description SalesEndpoint "Service for hosting the Sales Endpoint"
58
58
59
59
The dependencies of a Windows Service can be configured after it has been created using the [sc config](https://technet.microsoft.com/en-us/library/cc990290.aspx) command.
60
60
61
-
```dos
61
+
```shell
62
62
sc.exe config [ServiceName] depend= <Dependencies(separated by / (forward slash))>
@@ -81,7 +81,7 @@ The default restart duration is 1 minute when enabling recovery via the Windows
81
81
82
82
The following example will restart the process after 5 seconds the first time, after 10 seconds the second time and then every 60 seconds. The Restart Service Count is reset after 1 hour (3600 seconds) of uninterrupted work since the last restart.
Copy file name to clipboardExpand all lines: persistence/upgrades/asp-saga-deduplication.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ where `<directory>` is the full path of the working directory that the de-duplic
73
73
74
74
The utility will list saga data classes that it found while scanning the assemblies provided. The list of classes is split into two categories: those classes that have a correlation property and those that do not.
Copy file name to clipboardExpand all lines: servicecontrol/troubleshooting.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ When adding a ServiceControl instance the configured port number is checked to e
33
33
34
34
In the event that the service fails to start to check if the configured port (typically port 33333) is available. To do this open up an elevated command prompt and issue the following command:
35
35
36
-
```dos
36
+
```shell
37
37
netstat -a -b
38
38
```
39
39
or install and use the provided [ServiceControl Management PowerShell module](https://www.powershellgallery.com/packages/Particular.ServiceControl.Management) cmdlet to check a specific port:
0 commit comments