public void SetConnectors(ConnectorEnum pInConnector, ConnectorEnum pOutConnector) { SetInput(pInConnector); SetOutput(pOutConnector); _connectorSet = true; }
public IConnector GetConnector(ConnectorEnum pConnectorType) { switch (pConnectorType) { case ConnectorEnum.Console: return(new ConsoleConnector()); default: throw new NotImplementedException(); } }
private void SetOutput(ConnectorEnum pOutConnector) { _outConnector = _connectorFactory.GetConnector(pOutConnector); }
private void SetInput(ConnectorEnum pInConnector) { _inConnector = _connectorFactory.GetConnector(pInConnector); }
/// <summary> /// Initialize instance of credentials object based on user profile. /// </summary> /// <param name="profile">iCampaign.TACS.UserProfile: object.</param> public Credentials(UserProfile profile) { _AccountId = profile.AccountId; _AccountName = profile.AccountName; _ApplicationCode = profile.ApplicationCode; _ApplicationGUID = profile.ApplicationGUID; _ConnectorType = profile.ConnectorType; _Database = profile.Database; _DataSource = profile.DataSource; _Disabled = profile.Disable; _DownloadUrl = profile.DownloadURL; _Email = profile.Email; _ErrorMessage = profile.ErrorMessage; _ExpireyDate = profile.UserExpirey; _FullName = profile.FullName; _Project = profile.Project; _Roles = profile.Roles; _SessionToken = profile.SessionToken; _SqlPassword = profile.SqlPassword; _SqlUser = profile.SqlUser; _Username = profile.Username; _SuperAdministrator = profile.SuperAdministrator; _AccountOwner = profile.AccountOwner; }