Esempio n. 1
0
        private static void ConfigureLikeBindings(BindingBuilder builder)
        {
            builder.HandleCommand <AddLikeCommand>()
            .WithHandle <LikeHandle>()
            .WithHandle <LikeNotificationHandle>();

            builder.HandleCommand <RemoveLikeCommand>()
            .WithHandle <LikeHandle>();
        }
Esempio n. 2
0
        private static void ConfigureGroupBindings(BindingBuilder builder)
        {
            builder.HandleCommand <HideGroupCommand>()
            .WithHandle <GroupHandle>()
            .WithHandle <GroupActivitiesHandle>();

            builder.HandleCommand <UnhideGroupCommand>()
            .WithHandle <GroupHandle>()
            .WithHandle <GroupActivitiesHandle>();
        }
Esempio n. 3
0
        private static void ConfigureCommentBindings(BindingBuilder builder)
        {
            builder.HandleCommand <AddCommentCommand>()
            .WithHandle <CommentHandle>()
            .WithHandle <CommentNotificationHandle>();

            builder.HandleCommand <EditCommentCommand>()
            .WithHandle <CommentHandle>()
            .WithHandle <CommentNotificationHandle>();

            builder.HandleCommand <RemoveCommentCommand>()
            .WithHandle <CommentHandle>();
        }
Esempio n. 4
0
 private static void ConfigureMediaBindings(BindingBuilder builder)
 {
     builder.HandleCommand <VideoConvertedCommand>()
     .WithHandle <VideoHandler>()
     .WithHandle <EventHandler>()
     .WithHandle <NewsHandler>()
     .WithHandle <SocialHandler>();
 }
Esempio n. 5
0
        protected override BindingConfiguration ConfigureBindings(BindingBuilder builder)
        {
            ConfigureLikeBindings(builder);
            ConfigureCommentBindings(builder);
            ConfigureGroupBindings(builder);
            ConfigureMediaBindings(builder);

            builder.HandleCommand <MemberChanged>()
            .WithHandle <MemberHandle <SearchableMember> >();
            builder.HandleCommand <MembersChanged>()
            .WithHandle <MemberHandle <SearchableMember> >();

            builder.HandleCommand <MentionCommand>()
            .WithHandle <MentionHandle>();

            return(builder.Build());
        }
Esempio n. 6
0
 private static void ConfigureMediaBindings(BindingBuilder builder)
 {
     builder.HandleCommand <VideoConvertedCommand>()
     .WithHandle <MediaHelper>()
     .WithHandle <EventsService>()
     .WithHandle <NewsService>()
     .WithHandle <BulletinsService>();
 }