public QueryAllSecurityGroupsWorkItemImpl NewQueryAllSecurityGroupsWorkItem(Package pkg) { QueryAllSecurityGroupsWorkItemImpl workItem = new QueryAllSecurityGroupsWorkItemImpl(); workItem.Pkg = pkg; return(workItem); }
public void ProcessQueryAllSecurityGroupsWorkItem(QueryAllSecurityGroupsWorkItemImpl workItem) { IList <SecurityGroup> securityGroups = this.AwsRepository.FindSecurityGroupsAll(); foreach (SecurityGroup securityGroup in securityGroups) { this.WorkItemQueue.Enqueue(this.WorkItemFactory.NewCreateSecurityGroupModelWorkItem(workItem.Pkg, securityGroup)); } }