private void ProcessResult(IAsyncResult asyncResult)
        {
            var proxy = new UserGroupEventServiceProxy("BasicHttpBinding_IAsyncUserGroupEventService");

            var response = proxy.Result(asyncResult).EndGetUserGroupEvent(asyncResult);
            Dispatcher.BeginInvoke(() => SetUserGroupEventData(response));
            proxy.Close();
        }
        private void ProcessResultWithFault(IAsyncResult asyncResult)
        {
            var proxy = new UserGroupEventServiceProxy("BasicHttpBinding_IAsyncUserGroupEventService");

            var response = proxy.Result(asyncResult).EndGetUserGroupEventWithFault(asyncResult);

            if (response.FaultDetail == null)
            {
                Dispatcher.BeginInvoke(() => SetUserGroupEventData(response));
            }
            else
            {
                // Handle the error

                // Log.WarnFormat("ProcessResultWithFault() {0}", response.FaultDetail.Message);
            }

            proxy.Close();
        }