示例#1
0
        public QueryAllSecurityGroupsWorkItemImpl NewQueryAllSecurityGroupsWorkItem(Package pkg)
        {
            QueryAllSecurityGroupsWorkItemImpl workItem = new QueryAllSecurityGroupsWorkItemImpl();

            workItem.Pkg = pkg;
            return(workItem);
        }
示例#2
0
        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));
            }
        }