コード例 #1
0
        public void SetConnectors(ConnectorEnum pInConnector, ConnectorEnum pOutConnector)
        {
            SetInput(pInConnector);
            SetOutput(pOutConnector);

            _connectorSet = true;
        }
コード例 #2
0
        public IConnector GetConnector(ConnectorEnum pConnectorType)
        {
            switch (pConnectorType)
            {
            case ConnectorEnum.Console:
                return(new ConsoleConnector());

            default:
                throw new NotImplementedException();
            }
        }
コード例 #3
0
 private void SetOutput(ConnectorEnum pOutConnector)
 {
     _outConnector = _connectorFactory.GetConnector(pOutConnector);
 }
コード例 #4
0
 private void SetInput(ConnectorEnum pInConnector)
 {
     _inConnector = _connectorFactory.GetConnector(pInConnector);
 }
コード例 #5
0
ファイル: Credentials.cs プロジェクト: cspot/TACS.NET-Manager
 /// <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;
 }