Example #1
0
        public QueryAllSubnetsWorkItemImpl NewQueryAllSubnetsWorkItem(Package pkg)
        {
            QueryAllSubnetsWorkItemImpl workItem = new QueryAllSubnetsWorkItemImpl();

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