Method StartAsync
StartAsync()
Asynchronously starts the local geoprocessing service.
Declaration
public override Task StartAsync()
Returns
Type | Description |
---|---|
Task | A task that represents the asynchronous start operation. |
Overrides
Remarks
The StartAsyncTask method will check whether this local service is already in the Started state and
raise an Invalid
Exceptions
Type | Condition |
---|---|
Invalid |
StartAsyncTask should can not be called if the local service is already in the Started state. |
Invalid |
An exception is raised if the Package |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
StartAsync(CancellationToken)
Asynchronously starts the local geoprocessing service.
Declaration
public override Task StartAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
Cancellation |
cancellationToken | The token to monitor for cancellation requests. The default value is System. |
Returns
Type | Description |
---|---|
Task | A task that represents the asynchronous start operation. |
Overrides
Remarks
The StartAsyncTask method will check whether this local service is already in the Started state and
raise an Invalid
Exceptions
Type | Condition |
---|---|
Invalid |
StartAsyncTask should can not be called if the local service is already in the Started state. |
Invalid |
An exception is raised if the Package |
System. |
The operation was cancelled |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.13 - 100.15 |