WaitForService Method
Microsoft Robotics Class Reference
Waits for service to be available.
Namespace: Microsoft.Dss.Hosting
Assembly: Microsoft.Dss.Environment (in Microsoft.Dss.Environment.dll) Version: 4.0.261.0 (4.0.261.0)
Syntax
public Port<ServiceInfoType> WaitForService(
string contract,
TimeSpan timeout
)
Parameters
- contract
Type: System. . :: . .String
The contract.
- timeout
Type: System. . :: . .TimeSpan
The timeout.
Return Value
A port where result is posted; null if service is not available (within timeout).