public ConnectionConfig(MessageBrokerEnum brokerType, string url, int?port = null) { BrokerType = brokerType; Url = url; if (port != null) { Port = port.GetValueOrDefault(); } }
public ConnectionConfig(MessageBrokerEnum brokerType, string url, int?port = null, string username = "", string password = "") { BrokerType = brokerType; Url = url; if (port != null) { Port = port.GetValueOrDefault(); } if (!String.IsNullOrEmpty(username)) { Username = username; } if (!String.IsNullOrEmpty(password)) { Password = password; } }
public RequestMessageData(T _data, string _publishHostUrl, int?_publishHostPort, string _publishChannel, MessageBrokerEnum _publishType, string _cacheHostUrl, int?_cacheHostPort, string _cacheKey, CacheTypeEnum _cacheType, int _cacheTimeoutMiliseconds, string _sessionIDGateway, string _userIDGateway = "", string _clientIDGateWay = "", int _retryAttempt = 1, string _lang = "id-id") { Data = _data; Language = _lang; PublishHostUrl = _publishHostUrl; PublishHostPort = _publishHostPort; PublishChannel = _publishChannel; PublishType = _publishType; CacheHostUrl = _cacheHostUrl; CacheHostPort = _cacheHostPort; CacheKey = _cacheKey; CacheTimeoutMiliseconds = _cacheTimeoutMiliseconds; CacheType = _cacheType; SessionIDGateway = _sessionIDGateway; UserIDGateway = _userIDGateway; ClientIDGateway = _clientIDGateWay; RetryAttempt = _retryAttempt; }