Пример #1
0
        public byte[] Serialize(AuthenticationTicket model)
        {
            var v3Ticket = AuthenticationTicketConverter.Convert(model);

            return(_serializer.Serialize(v3Ticket));
        }
Пример #2
0
        public AuthenticationTicket Deserialize(byte[] data)
        {
            var v3Ticket = _serializer.Deserialize(data);

            return(AuthenticationTicketConverter.Convert(v3Ticket, "ASPNET Interop"));
        }