public ParameterDescriptor ToParameterDescriptor()
 {
     return(new ServiceBusTriggerParameterDescriptor
     {
         Name = _parameterName,
         EntityPath = _entityPath,
         DisplayHints = ServiceBusBinding.CreateParameterDisplayHints(_entityPath, true)
     });
 }
示例#2
0
        public ParameterDescriptor ToParameterDescriptor()
        {
            string entityPath = _queueName != null ?
                                _queueName : string.Format(CultureInfo.InvariantCulture, "{0}/Subscriptions/{1}", _topicName, _subscriptionName);

            return(new ServiceBusTriggerParameterDescriptor
            {
                Name = _parameterName,
                QueueName = _queueName,
                TopicName = _topicName,
                SubscriptionName = _subscriptionName,
                DisplayHints = ServiceBusBinding.CreateParameterDisplayHints(entityPath, true)
            });
        }