Ejemplo n.º 1
0
        public void Login(string userName)
        {
            OperationContext       context  = OperationContext.Current;
            ICheckinServerCallback callback = context.GetCallbackChannel <ICheckinServerCallback>();
            CheckinUser            newUser  = new CheckinUser(userName, callback);

            CheckinCC.Users.Add(newUser);
            foreach (var user in CheckinCC.Users)
            {
                user.Checkincallback.ShowLogin(userName);
            }
        }
Ejemplo n.º 2
0
 public CheckinUser(string username, ICheckinServerCallback Checkincallback)
 {
     this.Name            = username;
     this.Checkincallback = Checkincallback;
 }