示例#1
0
        public static T Deserialize <T>(OutboxMessageDto message)
            where T : class, INotification
        {
            Type type = Assembly.GetAssembly(typeof(NewUserRegisteredNotification)).GetType(typeof(T).FullName);

            return(JsonConvert.DeserializeObject(message.Data, type) as T);
        }
        public static T Deserialize <T>(OutboxMessageDto message)
            where T : class, INotification
        {
            Type type = Assembly.GetAssembly(typeof(SubscriptionCreatedNotification)).GetType(message.Type);

            return(JsonConvert.DeserializeObject(message.Data, type) as T);
        }
        public static T Deserialize <T>(OutboxMessageDto message)
            where T : class, INotification
        {
            Type type = Assembly.GetAssembly(typeof(MeetingGroupProposalAcceptedNotification)).GetType(message.Type);

            return(JsonConvert.DeserializeObject(message.Data, type) as T);
        }