Beispiel #1
0
        private void RegisterToService()
        {
            _server.HubConnection.On("LogInNotificated", async(string userName) =>
            {
                await System.Windows.Application.Current.Dispatcher.InvokeAsync(
                    () =>
                {
                    LogInCompleted?.Invoke(this, new UserActionEventArgs(userName));
                });
            });

            _server.HubConnection.On("LogOutNotificated", async(string userName) =>
            {
                await System.Windows.Application.Current.Dispatcher.InvokeAsync(
                    () =>
                {
                    LogOutCompleted?.Invoke(this, new UserActionEventArgs(userName));
                });
            });
        }
Beispiel #2
0
 internal void InvokeLogInCompleted()
 {
     LogInCompleted?.Invoke(this, EventArgs.Empty);
 }