protected override TResponse Execute <TRequest, TResponse>(TRequest request, Action <IQuoteConnector, TResponse> action) { using (SoDatabaseContext.EnterDatabaseContext(request.ContextIdentifier)) { var systemUserToken = SystemUserManager.GetSystemUserToken(request.ContextIdentifier); SuperOffice.Configuration.ConfigFile.WebServices.RemoteBaseURL = systemUserToken.NetserverUrl; using (SoSession session = SoSession.Authenticate(new SoCredentials() { Ticket = systemUserToken.Ticket })) { return(base.Execute <TRequest, TResponse>(request, action)); } } }