示例#1
0
 public string GetBindingConnectionInformation(string operationId, InsensitiveDictionary <JToken> connectionParameters)
 {
     return(ServiceOperationsProviderUtilities
            .GetRequiredParameterValue(
                serviceId: ServiceId,
                operationId: operationId,
                parameterName: "connectionString",
                parameters: connectionParameters)?
            .ToValue <string>());
 }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ActiveMQTriggerParameters"/> class.
        /// </summary>
        /// <param name="connectionParameters"></param>
        /// <param name="serviceOperationRequest"></param>
        public ActiveMQTriggerParameters(InsensitiveDictionary <JToken> connectionParameters, ServiceOperationRequest serviceOperationRequest)
        {
            this.connectionParameters    = connectionParameters;
            this.serviceOperationRequest = serviceOperationRequest;

            BrokerUri = ServiceOperationsProviderUtilities.GetParameterValue("BrokerUri", connectionParameters).ToValue <string>();
            ClientId  = ServiceOperationsProviderUtilities.GetParameterValue("ClientId", connectionParameters).ToValue <string>();
            UserName  = ServiceOperationsProviderUtilities.GetParameterValue("UserName", connectionParameters).ToValue <string>();
            Password  = ServiceOperationsProviderUtilities.GetParameterValue("Password", connectionParameters).ToValue <string>();

            MaximumNumber = serviceOperationRequest.Parameters["MaximumNumber"].ToValue <int>();
            QueueName     = serviceOperationRequest.Parameters["queue"].ToValue <string>();
        }
示例#3
0
        public triggerPramsDto(InsensitiveDictionary <JToken> connectionParameters, ServiceOperationRequest serviceOperationRequest)
        {
            this.connectionParameters    = connectionParameters;
            this.serviceOperationRequest = serviceOperationRequest;

            this.BrokerUri = ServiceOperationsProviderUtilities.GetParameterValue("BrokerUri", connectionParameters).ToValue <string>();
            this.ClientId  = ServiceOperationsProviderUtilities.GetParameterValue("ClientId", connectionParameters).ToValue <string>();
            this.UserName  = ServiceOperationsProviderUtilities.GetParameterValue("UserName", connectionParameters).ToValue <string>();
            this.Password  = ServiceOperationsProviderUtilities.GetParameterValue("Password", connectionParameters).ToValue <string>();

            this.MaximumNo = serviceOperationRequest.Parameters["MaximumNo"].ToValue <int>();
            this.QueueName = serviceOperationRequest.Parameters["queue"].ToValue <string>();
        }