public QueryAllSubnetsWorkItemImpl NewQueryAllSubnetsWorkItem(Package pkg) { QueryAllSubnetsWorkItemImpl workItem = new QueryAllSubnetsWorkItemImpl(); workItem.Pkg = pkg; return(workItem); }
public void ProcessQueryAllSubnetsWorkItem(QueryAllSubnetsWorkItemImpl workItem) { IList <Amazon.EC2.Model.Subnet> subnets = this.AwsRepository.FindSubnetAll(); foreach (Amazon.EC2.Model.Subnet subnet in subnets) { this.WorkItemQueue.Enqueue(this.WorkItemFactory.NewCreateSubnetModelWorkItem(workItem.Pkg, subnet)); } }