예제 #1
0
        public OperationResult DeleteSubscriber(long accountId)
        {
            return(InvokeOperations.InvokeOperation(() =>
            {
                var operationResult = accService.DeleteAccount(accountId);
                if (!operationResult.IsSuccess)
                {
                    throw new OperationException(operationResult.Error, operationResult.Code);
                }

                signalServiceRepository.DeleteSubscriber(accountId);

                Logger.Trace("Subscriber removed (account {0})", accountId);
            }));
        }