public Connection(ConnectionName name, IAmAChannelFactory channelFactory, Type dataType, ChannelName channelName, string routingKey, int noOfPerformers = 1,
int timeoutInMilliseconds = 300, int requeueCount = -1, int requeueDelayInMilliseconds = 0, int unacceptableMessageLimit = 0, bool isDurable = false,
bool isAsync = false)
{
RequeueCount = requeueCount;
Name = name;
ChannelFactory = channelFactory;
DataType = dataType;
NoOfPeformers = noOfPerformers;
TimeoutInMiliseconds = timeoutInMilliseconds;
UnacceptableMessageLimit = unacceptableMessageLimit;
RequeueDelayInMilliseconds = requeueDelayInMilliseconds;
ChannelName = channelName;
RoutingKey = routingKey;
IsDurable = isDurable;
IsAsync = isAsync;
}
}