/// <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); }); }
/// <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); }); }