public static async Task <WorkItemEventMessage> WaitForWorkItemCreatedEvent( this MessageReceiver client, WaitOptions options = null) { WaitFilter filter = WorkItemCreatedFilter .Build(); return(await client.WaitFor <WorkItemEventMessage>(filter, options)); }
public static async Task <WorkItemEventMessage> WaitForWorkItemCreatedEvent( this MessageReceiver client, string title, WaitOptions options = null) { WaitFilter filter = WorkItemCreatedFilter .WithProperty("System_Title", title) .Build(); return(await client.WaitFor <WorkItemEventMessage>(filter, options)); }