Example #1
0
        /// <summary>
        ///
        /// </summary>
        public void Logout()
        {
            IDoorServiceCallback client = OperationContext.Current.GetCallbackChannel <IDoorServiceCallback>();

            if (callbackList.Contains(client))
            {
                callbackList.Remove(client);
            }

            callbackList.ForEach(
                delegate(IDoorServiceCallback callback)
                { callback.NotifyLogout(this.application); });
        }
Example #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="application"></param>
        /// <returns></returns>
        public void Login(string application)
        {
            IDoorServiceCallback client = OperationContext.Current.GetCallbackChannel <IDoorServiceCallback>();

            if (!callbackList.Contains(client))
            {
                callbackList.Add(client);
            }

            this.application = application;

            callbackList.ForEach(
                delegate(IDoorServiceCallback callback)
                { callback.NotifyLogin(application); });
        }