private Method CreateCreateEventHubFullDetails(List <Property> EventHubProps)
        {
            Method CreateEventHub = new Method();

            CreateEventHub.Name = "createeventhubfulldetails";
            CreateEventHub.MetaData.DisplayName = "Create Event Hub Full Details";
            CreateEventHub.Type = MethodType.Read;
            CreateEventHub.InputProperties.Add(EventHubProps.Where(p => p.Name == "eventhub").First());
            CreateEventHub.InputProperties.Add(EventHubProps.Where(p => p.Name.Equals("messageretentionindays", StringComparison.OrdinalIgnoreCase)).First());
            CreateEventHub.InputProperties.Add(EventHubProps.Where(p => p.Name.Equals("partitioncount", StringComparison.OrdinalIgnoreCase)).First());

            foreach (Property prop in ASBStandard.GetStandardInputProperties())
            {
                CreateEventHub.InputProperties.Add(prop);
            }

            CreateEventHub.Validation.RequiredProperties.Add(EventHubProps.Where(p => p.Name == "eventhub").First());
            //CreateQueue.Validation.RequiredProperties.Add(QueueProps.Where(p => p.Name == "defaultmessagetimetolive").First());
            //CreateQueue.Validation.RequiredProperties.Add(QueueProps.Where(p => p.Name == "duplicatedetectionhistorytimewindow").First());
            //CreateQueue.Validation.RequiredProperties.Add(QueueProps.Where(p => p.Name == "lockduration").First());
            //CreateQueue.Validation.RequiredProperties.Add(QueueProps.Where(p => p.Name == "maxsizeinmegabytes").First());
            //CreateQueue.Validation.RequiredProperties.Add(QueueProps.Where(p => p.Name == "enabledeadletteringonmessageexpiration").First());
            //CreateQueue.Validation.RequiredProperties.Add(QueueProps.Where(p => p.Name == "requiresduplicatedetection").First());
            //CreateQueue.Validation.RequiredProperties.Add(QueueProps.Where(p => p.Name == "requiressession").First());

            foreach (Property prop in EventHubProps)
            {
                CreateEventHub.ReturnProperties.Add(prop);
            }
            return(CreateEventHub);
        }
예제 #2
0
        private Method CreateListQueues(List <Property> QueueProps)
        {
            Method ListQueues = new Method();

            ListQueues.Name = "listqueues";
            ListQueues.MetaData.DisplayName = "List Queues";
            ListQueues.Type = MethodType.List;

            foreach (Property prop in ASBStandard.GetStandardInputProperties())
            {
                ListQueues.InputProperties.Add(prop);
            }

            foreach (Property prop in QueueProps)
            {
                ListQueues.ReturnProperties.Add(prop);
            }
            return(ListQueues);
        }
        private Method CreateListEventHubs(List <Property> EventHubProps)
        {
            Method ListEventHubs = new Method();

            ListEventHubs.Name = "listeventhubs";
            ListEventHubs.MetaData.DisplayName = "List Event Hubs";
            ListEventHubs.Type = MethodType.List;

            foreach (Property prop in ASBStandard.GetStandardInputProperties())
            {
                ListEventHubs.InputProperties.Add(prop);
            }

            foreach (Property prop in EventHubProps)
            {
                ListEventHubs.ReturnProperties.Add(prop);
            }
            return(ListEventHubs);
        }
예제 #4
0
        private Method CreateDeleteQueue(List <Property> QueueProps)
        {
            Method DeleteQueue = new Method();

            DeleteQueue.Name = "deletequeue";
            DeleteQueue.MetaData.DisplayName = "Delete Queue";
            DeleteQueue.Type = MethodType.Read;
            DeleteQueue.InputProperties.Add(QueueProps.Where(p => p.Name == "queue").First());
            DeleteQueue.Validation.RequiredProperties.Add(QueueProps.Where(p => p.Name == "queue").First());

            foreach (Property prop in ASBStandard.GetStandardInputProperties())
            {
                DeleteQueue.InputProperties.Add(prop);
            }

            foreach (Property prop in QueueProps)
            {
                DeleteQueue.ReturnProperties.Add(prop);
            }
            return(DeleteQueue);
        }
        private Method CreateDeleteEventHub(List <Property> EventHubProps)
        {
            Method DeleteEventHub = new Method();

            DeleteEventHub.Name = "deleteeventhub";
            DeleteEventHub.MetaData.DisplayName = "Delete Event Hub";
            DeleteEventHub.Type = MethodType.Read;
            DeleteEventHub.InputProperties.Add(EventHubProps.Where(p => p.Name == "eventhub").First());
            DeleteEventHub.Validation.RequiredProperties.Add(EventHubProps.Where(p => p.Name == "eventhub").First());

            foreach (Property prop in ASBStandard.GetStandardInputProperties())
            {
                DeleteEventHub.InputProperties.Add(prop);
            }

            foreach (Property prop in EventHubProps)
            {
                DeleteEventHub.ReturnProperties.Add(prop);
            }
            return(DeleteEventHub);
        }
        private Method CreateLoadTopic(List <Property> TopicProps)
        {
            Method LoadTopic = new Method();

            LoadTopic.Name = "loadtopic";
            LoadTopic.MetaData.DisplayName = "Load Topic";
            LoadTopic.Type = MethodType.Read;
            LoadTopic.InputProperties.Add(TopicProps.Where(p => p.Name == "topic").First());
            LoadTopic.Validation.RequiredProperties.Add(TopicProps.Where(p => p.Name == "topic").First());

            foreach (Property prop in ASBStandard.GetStandardInputProperties())
            {
                LoadTopic.InputProperties.Add(prop);
            }

            foreach (Property prop in TopicProps)
            {
                LoadTopic.ReturnProperties.Add(prop);
            }
            return(LoadTopic);
        }
        private Method CreateLoadSubscription(List <Property> SubscriptionProps)
        {
            Method LoadSubscription = new Method();

            LoadSubscription.Name = "loadsubscription";
            LoadSubscription.MetaData.DisplayName = "Load Subscription";
            LoadSubscription.Type = MethodType.Read;
            LoadSubscription.InputProperties.Add(SubscriptionProps.Where(p => p.Name == "subscription").First());
            LoadSubscription.Validation.RequiredProperties.Add(SubscriptionProps.Where(p => p.Name == "subscription").First());
            LoadSubscription.InputProperties.Add(SubscriptionProps.Where(p => p.Name == "topic").First());
            LoadSubscription.Validation.RequiredProperties.Add(SubscriptionProps.Where(p => p.Name == "topic").First());

            foreach (Property prop in ASBStandard.GetStandardInputProperties())
            {
                LoadSubscription.InputProperties.Add(prop);
            }

            foreach (Property prop in SubscriptionProps)
            {
                LoadSubscription.ReturnProperties.Add(prop);
            }
            return(LoadSubscription);
        }
예제 #8
0
        private Method CreateCreateQueueFullDetails(List <Property> QueueProps)
        {
            Method CreateQueue = new Method();

            CreateQueue.Name = "createqueuefulldetails";
            CreateQueue.MetaData.DisplayName = "Create Queue Full Details";
            CreateQueue.Type = MethodType.Read;
            CreateQueue.InputProperties.Add(QueueProps.Where(p => p.Name == "queue").First());
            CreateQueue.InputProperties.Add(QueueProps.Where(p => p.Name == "defaultmessagetimetolive").First());
            CreateQueue.InputProperties.Add(QueueProps.Where(p => p.Name == "duplicatedetectionhistorytimewindow").First());
            CreateQueue.InputProperties.Add(QueueProps.Where(p => p.Name == "lockduration").First());
            CreateQueue.InputProperties.Add(QueueProps.Where(p => p.Name == "maxsizeinmegabytes").First());
            CreateQueue.InputProperties.Add(QueueProps.Where(p => p.Name == "enabledeadletteringonmessageexpiration").First());
            CreateQueue.InputProperties.Add(QueueProps.Where(p => p.Name == "requiresduplicatedetection").First());
            CreateQueue.InputProperties.Add(QueueProps.Where(p => p.Name == "requiressession").First());

            foreach (Property prop in ASBStandard.GetStandardInputProperties())
            {
                CreateQueue.InputProperties.Add(prop);
            }

            CreateQueue.Validation.RequiredProperties.Add(QueueProps.Where(p => p.Name == "queue").First());
            //CreateQueue.Validation.RequiredProperties.Add(QueueProps.Where(p => p.Name == "defaultmessagetimetolive").First());
            //CreateQueue.Validation.RequiredProperties.Add(QueueProps.Where(p => p.Name == "duplicatedetectionhistorytimewindow").First());
            //CreateQueue.Validation.RequiredProperties.Add(QueueProps.Where(p => p.Name == "lockduration").First());
            //CreateQueue.Validation.RequiredProperties.Add(QueueProps.Where(p => p.Name == "maxsizeinmegabytes").First());
            //CreateQueue.Validation.RequiredProperties.Add(QueueProps.Where(p => p.Name == "enabledeadletteringonmessageexpiration").First());
            //CreateQueue.Validation.RequiredProperties.Add(QueueProps.Where(p => p.Name == "requiresduplicatedetection").First());
            //CreateQueue.Validation.RequiredProperties.Add(QueueProps.Where(p => p.Name == "requiressession").First());

            foreach (Property prop in QueueProps)
            {
                CreateQueue.ReturnProperties.Add(prop);
            }
            return(CreateQueue);
        }
        private Method CreateSendEventHubMessage(List <Property> EventHubProps)
        {
            Method SendEventHubMessage = new Method();

            SendEventHubMessage.Name = "sendeventhubmessage";
            SendEventHubMessage.MetaData.DisplayName = "Send Event Hub Message";
            SendEventHubMessage.Type = MethodType.Read;
            SendEventHubMessage.InputProperties.Add(EventHubProps.Where(p => p.Name == "eventhub").First());
            SendEventHubMessage.Validation.RequiredProperties.Add(EventHubProps.Where(p => p.Name == "eventhub").First());
            SendEventHubMessage.InputProperties.Add(EventHubProps.Where(p => p.Name == "data").First());
            SendEventHubMessage.Validation.RequiredProperties.Add(EventHubProps.Where(p => p.Name == "data").First());

            foreach (Property prop in ASBStandard.GetStandardInputProperties())
            {
                SendEventHubMessage.InputProperties.Add(prop);
            }

            SendEventHubMessage.ReturnProperties.Add(EventHubProps.Where(p => p.Name == "eventhub").First());
            SendEventHubMessage.ReturnProperties.Add(EventHubProps.Where(p => p.Name == "data").First());
            SendEventHubMessage.ReturnProperties.Add(EventHubProps.Where(p => p.Name == "responsestatus").First());
            SendEventHubMessage.ReturnProperties.Add(EventHubProps.Where(p => p.Name == "responsestatusdescription").First());

            return(SendEventHubMessage);
        }
        private Method CreateListSubscriptions(List <Property> SubscriptionProps)
        {
            Method ListSubscriptions = new Method();

            ListSubscriptions.Name = "listsubscriptions";
            ListSubscriptions.MetaData.DisplayName = "List Subscriptions";
            ListSubscriptions.Type = MethodType.List;
            ListSubscriptions.InputProperties.Add(SubscriptionProps.Where(p => p.Name == "topic").First());
            ListSubscriptions.Validation.RequiredProperties.Add(SubscriptionProps.Where(p => p.Name == "topic").First());

            foreach (Property prop in ASBStandard.GetStandardInputProperties())
            {
                ListSubscriptions.InputProperties.Add(prop);
            }


            foreach (Property prop in SubscriptionProps)
            {
                ListSubscriptions.ReturnProperties.Add(prop);
            }


            return(ListSubscriptions);
        }