Exemple #1
0
        public Datasource GetDatasource(string path)
        {
            var dataSourceContents = webserviceProxy.GetDataSourceContents(path);
            var datasource         = new Datasource
            {
                ConnectionString        = dataSourceContents.ConnectString,
                CredentialRetrievalType =
                    GetCredentialRetrievalTypeFromSSRSType(
                        dataSourceContents.CredentialRetrieval),
                Enabled             = dataSourceContents.Enabled,
                Extension           = dataSourceContents.Extension,
                Username            = dataSourceContents.UserName,
                Password            = dataSourceContents.Password,
                Prompt              = dataSourceContents.Prompt,
                SetExecutionContext = dataSourceContents.ImpersonateUser,
                UseStoredCredentialsAsWindowsCredentials =
                    dataSourceContents.WindowsCredentials,
                UsePromptedCredentialsAsWindowsCredentials =
                    dataSourceContents.WindowsCredentials
            };

            return(datasource);
        }