万本电子书0元读

万本电子书0元读

顶部广告

ASP.NET 4 Social Networking电子书

售       价:¥

309人正在读 | 0人评论 6.2

作       者:Atul Gupta

出  版  社:Packt Publishing

出版时间:2011-03-23

字       数:1697.6万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:此类商品不支持退换货,不支持下载打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Each chapter starts by showing the user experience we are going to create in the chapter. It then has a section discussing the major design decisions we face in building these features, and finally presents the 'solution' including the overall architecture and highlighting the most important code elements. The book presents a lot of real-world code, with comprehensive explanation and discussion. The full social network application is available for download from the Packt website, for you to examine, study, and modify. This book is written for ASP.NET and C# developers who want to build an enterprise-grade Social Network, either for their own business purposes or as a contract job for another company. The book assumes you have prior experience of developing web applications using ASP.NET 4.0, C# , SQL Server 2008, and Visual Studio .NET 2010. If you working with earlier versions of any of these, you can still go ahead and use this book as a guide to get you going. The book focuses on topics that will be of interest to existing developers and not on providing step-by-step examples for each detail.
目录展开

ASP.NET 4 Social Networking

Table of Contents

ASP.NET 4 Social Networking

Credits

About the Authors

Acknowledgement

Acknowledgement

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why Subscribe?

Free Access for Packt account holders

Preface

What this book covers

What you need for this book

Who is this book for

Conventions

Reader feedback

Customer support

Downloading the example code for the book

Errata

Piracy

Questions

1. Social Networking

What makes this topic so important

Communities Galore

Once I have my own social network, then what?

Customer service

Content moderation

Growing infrastructure requirements

POST and SLATES

Our social network—Fisharoo

This book's approach

Problem

Design

Solution

Features of our social network

Accounts

Profiles

Friends

Messaging

Media galleries

Blogging

Forums

Groups

Comments

Tags

Ratings

Mark as Answer

Voting

Medals

Framework

Scaling up

Summary

2. An Enterprise Approach to our Community Framework

Application design

Key principles

Layered architecture

Layers

Tiered architecture

Domain-driven Design

Important aspects

Ubiquitous language

Entities

Value objects

Services

Modules

Aggregates

Factories

Repositories

Entity Framework

Repository pattern and Entity Framework

Building Extensibility using Managed Extensibility Framework (MEF)

Model View Presenter pattern

Model

View

Presenter

How it works

Creating the .NET Solution

Presentation layer

Components layer

Configuration

Cache

Session

Redirection

Email

Error handling and logging

Logging

Error handling

Data Access layer

Summary

3. User Accounts

Problem

Design

Registration

Accounts

Password strength

Terms and conditions

reCAPTCHA

Email confirmation and verification

Security

Permissions

Password encryption/decryption

Logging in

Password reminder

Manage account

Solution

Implementing the database

The Accounts table

The Permissions table

The AccountPermissions table

The Terms table

Creating the relationships

Implementing the data access layer

Update Model from Database

A Data Context wrapper

Building repositories

Selecting accounts

Saving an account

Deleting an account

Adding permissions to an account

The other repositories

Permissions repository

Terms repository

Implementing the application layer

Extension methods

Implementing the domain layer

Implementing the presentation layer

Model view presenter

View

Presenter

Registration page

Email verification

Password recovery

Edit account

Implementing security

SiteMap

SiteMap wrapper

All nodes

Navigation

Checking access

Security

Implementing navigation and security

Summary

4. User Profiles

Problem

Design

Profile

Manage profile

Avatar

Custom avatars

Gravatar

Public profile

Custom homepage

Privacy

News feed

Solution

Revisiting the Solution Structure

Implementing the database

The Profiles table

Level of experience

The Attributes table

The Privacy table

The Alerts table

Setting up the data access layer

Entity classes

Building repositories

Implementing the services/application layer

ProfileService

Account service

Privacy service

Alert service

Other services

Implementing the presentation layer

Privacy

Manage privacy

Manage profile

Avatar

Upload avatar

Image manipulation

Gravatar

Public profile

Custom homepage

News feed/Alerts

Summary

5. Friends

Problem

Design

Friends

Finding friends

Searching for a friend

Inviting a friend

Importing friends from external sources

Sending an invitation

Adding friend alerts

Interacting with your friends

Viewing your friends

Managing your friends

Following your friends

Providing status updates to your friends

Solution

Implementing the database

The friends table

Friend invitations

Status updates

Creating the relationships

Setting up the data access layer

Building repositories

FriendRepository

FriendInvitationRepository

StatusUpdateRepository

AccountRepository

FriendService

AlertService

PrivacyService

Implementing the Presentation layer

Searching for friends

SiteMaster

Search

Invite your friends

Outlook CSV importer

Importing contacts

Selecting contacts

Confirm friendship

Login

Registration

Show friends

Friends on profile

Status updates

Summary

6. Messaging

Problem

Design

Messages

Recipients

Solution

Implementing the database

Messages

MessageTypes

MessageRecipients

MessageRecipientTypes

MessageStatusTypes

MessageFolders

Creating the relationships

Setting up the data access layer

Building repositories

MessageRepository

MessageRecipientRepository

Implementing the services/application layer

MessageService

Email

AlertService

FriendService

Implementing the presentation layer

New message

Friends control

Default (or Inbox)

Folders

Read message

Summary

7. Media Galleries

Problem

Design

Files

Folders

File upload

File system management

Data management screens

Solution

Implementing the database

Files

File system folders

File types

Folders

Folder types

Account folders

Account files

Folder files

Creating the relationships

Setting up the data access layer

Building repositories

FileRepository

FolderRepository

Implementing the services/application layer

FolderService

Implementing the presentation layer

File upload

Multiple file upload

Receiving files with Silverlight uploader

Photo albums

MyPhotos

ViewAlbum

Summary

8. Blogs

Problem

Design

Blogs

Solution

Implementing the database

Blogs

Creating the relationships

Setting up the data access layer

Building repositories

Implementing the services/application layer

AlertService

Implementing the presentation layer

Latest blog posts

My Blogs

Fancy URL support

View post

Create or edit post

Summary

9. Forums

Problem

Design

Categories

Forums

Threads and posts

Friendly URLs

Alerts

Solution

Implementing the database

Categories

Forums

Posts

Creating the relationships

Setting up the data access layer

Building repositories

BoardCategoryRepository

BoardForumRepository

BoardPostRepository

Implementing the Services/Application layer

BoardService

AlertService

Implementing the Presentation layer

Default.aspx

URL routing

ViewForum.aspx

ViewPost.aspx

Post.aspx

Summary

10. Groups

Problem

Design

Groups

GroupMembers

GroupTypes

GroupForums

Solution

Implementing the database

Groups

GroupMembers

GroupTypes

GroupForums

Creating the relationships

Setting up the data access layer

Building repositories

GroupRepository

GetGroupByForumID

IsOwner

CheckIfGroupPageNameExists

GroupToGroupTypeRepository

SaveGroupTypesForGroup

GroupForumRepository

GroupMemberRepository

GetMemberAccountIDsByGroupID

DeleteGroupMembers

GroupTypeRepository

AccountRepository

GetApprovedAccountsByGroupID

GetAccountsToApproveByGroupID

Implementing the services/application layer

GroupService

IsOwnerOrAdministrator

SaveGroup

AlertService

Redirector

WebContext

Implementing the presentation layer

ManageGroup

WYSIWYG

Image upload

Members

Data pagination

CheckBoxLists without the CheckBoxList control

Default

URL routing

ViewGroup

Private/Public

MyGroups

Forum enhancements

Summary

11. User Interactivity

Problem

Ratings

Tagging

Commenting

Mark as answer

Voting

Medals

Design

Ratings

Tags

Comments

Voting

Medals

Solution

Implementing the database

SystemObjects

Ratings

System object rating options

Tags

System object tags

Comments

Votes and Mark as Answer

Medals

Creating the relationships

Setting up the data access layer

Building repositories

RatingRepository

HasRatedBefore()

GetCurrentRating()

SaveRatings()

SystemObjectRatingOptionRepository

TagsRepository

GetTagByName()

GetTagsGlobal()

GetTagsBySystemObject()

GetTagsBySystemObjectAndRecordID()

SystemObjectTagRepository

GetSystemObjectByTagID()

CommentRepository

BoardPost Repository

Implementing the services/application layer

TagService

AddTag()

CalculateFontSize()

Extensions

AccountService

SaveAccount ()

WebContext

SelectedRatings

ClearSelectedRatings

Configuration

Implementing the presentation layer

Comments Page

Comments.ascx

Comments.ascx.cs

CommentsPresenter.cs

Ratings Page

Ratings.ascx

Ratings.ascx.cs

RatingsPresenter.cs

Tags Page

Tags.ascx

Tags.ascx.cs

TagsPresenter.cs

Votes page

Votes.ascx

Votes.ascx.cs

VotesPresenter.cs

MarkAnswer page

MarkAnswer.ascx

MarkAnswer.ascx.cs

MarkAnswerPresenter.cs

Medals page

Medals.ascx

Medals.ascx.cs

Installing the new user controls

Photos UI

Forums UI

ProfileDisplay UserControl

Tags page

Tags.aspx

Tags.aspx.cs

TagsPresenter.cs

Summary

12. Moderation

Problem

Community moderation

Gagging users

Dynamic filter

Design

Moderation

Gags

Filtering

Solution

Implementing the database

Moderations

Gags

ContentFilters

Creating the relationships

Setting up the data access layer

Building repositories

ModerationRepository

GetModerationsGlobal()

GagRepository

ContentFilterRepository

Implementing the services/application layer

ContentFilterService

Implementing the presentation layer

Moderation

The user control

Moderating flagged content

Gagging

Filtering

Summary

13. Scaling

Problem

Design

Solution

Tiered architecture

Scaling with two-tiered approach

Scaling with multi-tiered approach

Presentation and application tier scaling

Layered architecture validation

Service enabling business logic

Web Server and application server—Windows IIS 7.5 and AppFabric

Web farming

Caching

Caching—AppFabric solution

Client

Caching—MemCached solution

The server

The client

Using the client

Caching in the Business logic layer

Configuration

Where do I start?

Email

Creating services to send email

The database

Services

Serializing email

Connecting the new DBMailQueueService

The queue

Processing the queue

Alerts

Database tier scaling

Flagged for delete

Indexing

Partitioning

FileGroups

Partition function

Partition scheme

Partition tables

How does this affect our current system?

Gotchas

Searching

Getting Lucene.NET

Building indexes

Building the search

Summary

A. Comparing ASP.NET MVP with ASP.NET MVC

ASP.NET Web Forms

Web presentation patterns

Page cache

Page controller

Model view presenter

Model view controller

Front controller

Intercepting filter

ASP.NET MVC

Choosing between MVP and MVC

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部