public void Wait(TimeSpan timeout) { if (executeTask == null || !IsExecuting) { return; } executeTask.Wait(timeout); completeTaskOperation.Do(x => x.Wait(timeout)); }
public void Wait(TimeSpan timeout) { if (executeTask == null || !IsExecuting) { return; } executeTask.Wait(timeout); #if !SILVERLIGHT && !NETFX_CORE completeTaskOperation.Do(x => x.Wait(timeout)); #endif }
void Wait(TimeSpan timeout) { if (!IsExecuting) { return; } if (!isLegacyExecuting) { throw new NotSupportedException("The Wait method is not supported when you execute a command with the ExecuteAsync method. Use async/await syntax instead."); } executeTask.Do(x => x.Wait(timeout)); completeTaskOperation.Do(x => x.Wait(timeout)); }