How can I have an operation timeout in Portable Class Libraries?
我怎么能在便携式类库操作超时?
You can also have transitions that trigger automatically when the source state is entered, or because of a timeout, or transitions that do not have a triggering operation.
您还可以具有在进入源状态或者因为超时或者因为没有触发操作的转换而自动触发的转换。
The VehicleInventory does this with the mark (expiry) operation, in which the expiry parameter is a timeout period in case the customer leaves the page without completing the reservation.
VehicleInventory通过mark (expiry)操作完成这一点,其中expiry参数为保留给客户的最长时间,以应付他未完成预约就离开页面的情形。
Object.wait (long timeout, int nanos) provides nanosecond granularity for a relative wait operation.
wait (longtimeout,intnanos)为相关的等待操作提供纳秒粒度。
You can use the fail method to force a test case to fail, for example if you want to force a timeout of an operation.
您可以利用fail方法强迫这个测试用例失败,例如您想要迫使一个操作暂停。
Sorry! Your operation already timeout!
对不起,您的操作曾经超时!
In these circumstances the operation fails due to the expired timeout and the transaction aborts appropriately.
在这些情况下,将会因为超时过期而导致操作失败,事务也将随之中止。
If transaction flow is enabled on the binding or the channel, the operation may take longer to execute than the specified timeout.
如果对绑定或通道启用了事务流,执行操作所需的时间可能会比指定的超时时间长。
The timer can generate an interrupt signal upon timeout, or provide the current value of count during operation.
定时器可以产生一个中断信号后,超时,或在操作过程中提供的计数当前值。
Things that are out of the norm for your example would be having a connection timeout, which is not standard operation for your method.
事情你标准的例子是连接超时,这不是标准操作方法。
Begins an asynchronous operation to receive an available request with a default timeout.
开始用于接收可用请求的异步操作,该操作具有默认的超时值。
Begins an asynchronous operation to receive an available request with a specified timeout.
开始用于接收可用请求的异步操作,该操作具有指定的超时值。
Sets a timeout value for the specified operation.
为指定的操作设置超时值。
Sets a timeout value for the specified operation.
为指定的操作设置超时值。
应用推荐