Beispiel #1
0
        protected override bool OnTarget(Mobile mob)
        {
            FriendContext friendContext = new FriendContext(mob);

            if (mob.HasName)
            {
                friendContext.OnFinish();
            }
            else
            {
                friendContext.Dispatch();
            }
            return(true);
        }
 public FriendController()
 {
     _context = new FriendContext();
 }
Beispiel #3
0
 public FriendService(FriendContext context)
 {
     FriendRepository = new FriendRepository(context);
 }
Beispiel #4
0
 public FriendRepository(FriendContext friendContext)
 {
     FriendDb = friendContext;
 }
Beispiel #5
0
 public FriendsController(FriendContext context)
 {
     _context = context;
 }
Beispiel #6
0
 public FriendRepository(FriendContext context)
 {
     this.Context = context;
 }