{"action":"created","issue":{"url":"https://api.github.com/repos/leekelleher/umbraco-ditto/issues/141","labels_url":"https://api.github.com/repos/leekelleher/umbraco-ditto/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/leekelleher/umbraco-ditto/issues/141/comments","events_url":"https://api.github.com/repos/leekelleher/umbraco-ditto/issues/141/events","html_url":"https://github.com/leekelleher/umbraco-ditto/issues/141","id":118302145,"number":141,"title":"AppSettings","user":{"login":"djomen","id":6400036,"avatar_url":"https://avatars.githubusercontent.com/u/6400036?v=3","gravatar_id":"","url":"https://api.github.com/users/djomen","html_url":"https://github.com/djomen","followers_url":"https://api.github.com/users/djomen/followers","following_url":"https://api.github.com/users/djomen/following{/other_user}","gists_url":"https://api.github.com/users/djomen/gists{/gist_id}","starred_url":"https://api.github.com/users/djomen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djomen/subscriptions","organizations_url":"https://api.github.com/users/djomen/orgs","repos_url":"https://api.github.com/users/djomen/repos","events_url":"https://api.github.com/users/djomen/events{/privacy}","received_events_url":"https://api.github.com/users/djomen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"leekelleher","id":209066,"avatar_url":"https://avatars.githubusercontent.com/u/209066?v=3","gravatar_id":"","url":"https://api.github.com/users/leekelleher","html_url":"https://github.com/leekelleher","followers_url":"https://api.github.com/users/leekelleher/followers","following_url":"https://api.github.com/users/leekelleher/following{/other_user}","gists_url":"https://api.github.com/users/leekelleher/gists{/gist_id}","starred_url":"https://api.github.com/users/leekelleher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leekelleher/subscriptions","organizations_url":"https://api.github.com/users/leekelleher/orgs","repos_url":"https://api.github.com/users/leekelleher/repos","events_url":"https://api.github.com/users/leekelleher/events{/privacy}","received_events_url":"https://api.github.com/users/leekelleher/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-11-23T00:49:37Z","updated_at":"2015-11-28T23:36:41Z","closed_at":null,"body":"The AppSettings resolver doesn't seem to be working... unless I've done something wrong.\r\n\r\nI have tried with and without passing the name and even tried adding your example.\r\n\r\nI have a class:\r\n...\r\n\r\n    public class MailSettings\r\n    {\r\n        [AppSetting(\"MailFrom\")]\r\n        public string MailFrom { get; set; }\r\n\r\n        [AppSetting()]\r\n        public string MailTo { get; set; }\r\n\r\n        [AppSetting(\"ContactSubject\")]\r\n        public string ContactSubject { get; set; }\r\n\r\n        [AppSetting(\"umbracoConfigurationStatus\")]\r\n        public string UmbracoVersion { get; set; }\r\n    }\r\n\r\n...\r\n\r\nand the settings (xml removed):\r\n...\r\n    key=\"ContactSubject\" value=\"[My Subject]\"\r\n    key=\"MailFrom\" value=\"website@domain.co.uk\"\r\n    key=\"MailTo\" value=\"receiver@domain.com\"\r\n...\r\n\r\nUpon testing i just seem to be getting null values.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/leekelleher/umbraco-ditto/issues/comments/160345786","html_url":"https://github.com/leekelleher/umbraco-ditto/issues/141#issuecomment-160345786","issue_url":"https://api.github.com/repos/leekelleher/umbraco-ditto/issues/141","id":160345786,"user":{"login":"djomen","id":6400036,"avatar_url":"https://avatars.githubusercontent.com/u/6400036?v=3","gravatar_id":"","url":"https://api.github.com/users/djomen","html_url":"https://github.com/djomen","followers_url":"https://api.github.com/users/djomen/followers","following_url":"https://api.github.com/users/djomen/following{/other_user}","gists_url":"https://api.github.com/users/djomen/gists{/gist_id}","starred_url":"https://api.github.com/users/djomen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djomen/subscriptions","organizations_url":"https://api.github.com/users/djomen/orgs","repos_url":"https://api.github.com/users/djomen/repos","events_url":"https://api.github.com/users/djomen/events{/privacy}","received_events_url":"https://api.github.com/users/djomen/received_events","type":"User","site_admin":false},"created_at":"2015-11-28T23:36:41Z","updated_at":"2015-11-28T23:36:41Z","body":"Ah i think i can see what the issue is here - I must obviously be using it incorrectly.\r\n\r\nFor some reason with this not been content spat out of umbraco and coming from settings I assumedI could just use a basic class (not a page VM).... not sure why i have thought that. Must have been half asleep...\r\n\r\nI guess i need to have these properties on the page view model so Ditto can populate.  Or is there a way to call Ditto to map a class with these properties and attributes?\r\n\r\nApologies if i sent you on a wild goose chase. \r\n"}}