{"action":"created","issue":{"url":"https://api.github.com/repos/imperugo/StackExchange.Redis.Extensions/issues/49","repository_url":"https://api.github.com/repos/imperugo/StackExchange.Redis.Extensions","labels_url":"https://api.github.com/repos/imperugo/StackExchange.Redis.Extensions/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/imperugo/StackExchange.Redis.Extensions/issues/49/comments","events_url":"https://api.github.com/repos/imperugo/StackExchange.Redis.Extensions/issues/49/events","html_url":"https://github.com/imperugo/StackExchange.Redis.Extensions/issues/49","id":133824539,"number":49,"title":"Can't get simple example to work with Message Pack CLI implementation","user":{"login":"nathvi","id":5109300,"avatar_url":"https://avatars.githubusercontent.com/u/5109300?v=3","gravatar_id":"","url":"https://api.github.com/users/nathvi","html_url":"https://github.com/nathvi","followers_url":"https://api.github.com/users/nathvi/followers","following_url":"https://api.github.com/users/nathvi/following{/other_user}","gists_url":"https://api.github.com/users/nathvi/gists{/gist_id}","starred_url":"https://api.github.com/users/nathvi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathvi/subscriptions","organizations_url":"https://api.github.com/users/nathvi/orgs","repos_url":"https://api.github.com/users/nathvi/repos","events_url":"https://api.github.com/users/nathvi/events{/privacy}","received_events_url":"https://api.github.com/users/nathvi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/imperugo/StackExchange.Redis.Extensions/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"imperugo","id":758620,"avatar_url":"https://avatars.githubusercontent.com/u/758620?v=3","gravatar_id":"","url":"https://api.github.com/users/imperugo","html_url":"https://github.com/imperugo","followers_url":"https://api.github.com/users/imperugo/followers","following_url":"https://api.github.com/users/imperugo/following{/other_user}","gists_url":"https://api.github.com/users/imperugo/gists{/gist_id}","starred_url":"https://api.github.com/users/imperugo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imperugo/subscriptions","organizations_url":"https://api.github.com/users/imperugo/orgs","repos_url":"https://api.github.com/users/imperugo/repos","events_url":"https://api.github.com/users/imperugo/events{/privacy}","received_events_url":"https://api.github.com/users/imperugo/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-02-15T21:45:40Z","updated_at":"2016-02-23T10:41:22Z","closed_at":null,"body":"I have some code that looks like this:\r\n\r\n```\r\nusing MsgPack.Serialization;\r\nusing StackExchange.Redis.Extensions.Core;\r\n\r\nnamespace RedisSample\r\n{\r\n    class Program\r\n    {\r\n        static void Main(string[] args)\r\n        {\r\n            ISerializer serializer = (ISerializer)SerializationContext.Default.GetSerializer<Person>();\r\n            var cacheClient = new StackExchangeRedisCacheClient(serializer);\r\n        }\r\n    }\r\n\r\n    public class Person\r\n    {\r\n        public int Age { get; set; }\r\n    }\r\n}\r\n```\r\n\r\nI have the MessagePack CLI implementation installed, and I'm getting this error:\r\n\r\n\"Unable to cast object of type 'MsgPack.Serialization.EmittingSerializers.Generated.RedisSample_PersonSerializer1' to type 'StackExchange.Redis.Extensions.Core.ISerializer'.\"\r\n\r\nThis is thrown when this line is trying to execute:\r\n`ISerializer serializer = (ISerializer)SerializationContext.Default.GetSerializer<Person>();`"},"comment":{"url":"https://api.github.com/repos/imperugo/StackExchange.Redis.Extensions/issues/comments/187647292","html_url":"https://github.com/imperugo/StackExchange.Redis.Extensions/issues/49#issuecomment-187647292","issue_url":"https://api.github.com/repos/imperugo/StackExchange.Redis.Extensions/issues/49","id":187647292,"user":{"login":"imperugo","id":758620,"avatar_url":"https://avatars.githubusercontent.com/u/758620?v=3","gravatar_id":"","url":"https://api.github.com/users/imperugo","html_url":"https://github.com/imperugo","followers_url":"https://api.github.com/users/imperugo/followers","following_url":"https://api.github.com/users/imperugo/following{/other_user}","gists_url":"https://api.github.com/users/imperugo/gists{/gist_id}","starred_url":"https://api.github.com/users/imperugo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imperugo/subscriptions","organizations_url":"https://api.github.com/users/imperugo/orgs","repos_url":"https://api.github.com/users/imperugo/repos","events_url":"https://api.github.com/users/imperugo/events{/privacy}","received_events_url":"https://api.github.com/users/imperugo/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T10:41:22Z","updated_at":"2016-02-23T10:41:22Z","body":"Any news here?\r\nCan I close the issue?"}}