public OperationResult <SubscriptionConnection[]> GetSubscriptionConnections(long clientId) { return(InvokeOperations.InvokeOperation(() => { Logger.Trace("Get subscription connections, client id - {0}", clientId); var connection = signalServiceRepository.GetSubscriptionConnection(clientId); var connectionResult = connection. Select(x => new SubscriptionConnection { ProviderId = x.Provider.id, SubscriberId = x.Subscriber.id }) .ToArray(); return connectionResult; })); }