public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
        {
            var source = (IdentityServer3.Core.Models.Client)value;

            var target = new ClientLite
            {
                ClientId = source.ClientId
            };
            serializer.Serialize(writer, target);
        }
예제 #2
0
        public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
        {
            var source = (Client)value;

            var target = new ClientLite
            {
                ClientId = source.ClientId
            };

            serializer.Serialize(writer, target);
        }