コード例 #1
0
        private void CreateProfileDetails(int profileId)
        {
            profileReader = ReaderFactory.GetProfileReader();
            details = profileReader.GetProfileDetails(profileId);
            if (details != null)
            {
                details.Id = profileId;
                AssignDomains();

                // Parse string lists
                details.ExtraJavaScriptFiles = ParseStringList(details.ExtraJavaScriptFilesString);
                details.ExtraCssFiles = ParseStringList(details.ExtraCssFilesString);
            }
        }
コード例 #2
0
        private void CreateProfileDetails(string profileKey)
        {
            profileReader = ReaderFactory.GetProfileReader();
            details = profileReader.GetProfileDetails(profileKey);
            if (details != null)
            {
                details.ProfileUrlKey = profileKey;
                AssignDomains();

                // Parse string lists
                details.ExtraJavaScriptFiles = ParseStringList(details.ExtraJavaScriptFilesString);
                details.ExtraCssFiles = ParseStringList(details.ExtraCssFilesString);
            }
            else if (string.IsNullOrEmpty(profileKey) == false)
            {
                
                throw new FingertipsException("Profile could not be found: " + profileKey);
            }
        }
コード例 #3
0
 public static ProfileReader GetProfileReader()
 {
     ProfileReader service = new ProfileReader(GetSessionFactory());
     service.OpenSession();
     return service;
 }
コード例 #4
0
 public ProfileCollectionBuilder(ProfileReader profileReader, AppConfig config)
 {
     this.profileReader = profileReader;
     this.config = config;
 }