public QueryAllRouteTablesWorkItemImpl NewQueryAllRouteTablesWorkItem(Package pkg) { QueryAllRouteTablesWorkItemImpl workItem = new QueryAllRouteTablesWorkItemImpl(); workItem.Pkg = pkg; return(workItem); }
public void ProcessQueryAllRouteTablesWorkItem(QueryAllRouteTablesWorkItemImpl workItem) { IList <RouteTable> routeTables = this.AwsRepository.FindRouteTablesAll(); foreach (RouteTable routeTable in routeTables) { this.WorkItemQueue.Enqueue(this.WorkItemFactory.NewCreateRouteTableModelWorkItem(workItem.Pkg, routeTable)); } }