public string GetBindingConnectionInformation(string operationId, InsensitiveDictionary <JToken> connectionParameters) { return(ServiceOperationsProviderUtilities .GetRequiredParameterValue( serviceId: ServiceId, operationId: operationId, parameterName: "connectionString", parameters: connectionParameters)? .ToValue <string>()); }
/// <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>(); }
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>(); }