public SoapReportExecutionService(System.Security.Principal.WindowsIdentity impersonationUser, Uri reportServerUrl, IReportServerCredentials reportServerCredentials, TrustedUserHeader trustedUserHeader, IEnumerable <string> headers, IEnumerable <Cookie> cookies, int timeout) { m_impersonationUser = impersonationUser; m_reportServerUrl = reportServerUrl; m_reportServerCredentials = reportServerCredentials; m_trustedUserHeader = trustedUserHeader; m_headers = headers; m_cookies = cookies; m_timeout = timeout; }
public ServerReport() { m_headers = new ReportViewerHeaderCollection(m_syncObject); m_cookies = new ReportViewerCookieCollection(m_syncObject); m_serverCredentialsImpl = new ReportServerCredentials(m_syncObject); m_serverCredentialsImpl.Change += delegate { OnCredentialsChanged(m_serverCredentials); }; m_serverCredentials = m_serverCredentialsImpl; }
private void OnCredentialsChanged(IReportServerCredentials credentials) { if (credentials != null) { m_serverIdentity = credentials.ImpersonationUser; } else { m_serverIdentity = null; } m_serverCredentials = credentials; m_service = null; ClearSession(); }
internal ServerReport(SerializationInfo info, StreamingContext context) : this() { m_serverUrl = (Uri)info.GetValue("ServerURL", typeof(Uri)); m_timeOut = info.GetInt32("TimeOut"); m_headers = (ReportViewerHeaderCollection)info.GetValue("Headers", typeof(ReportViewerHeaderCollection)); m_cookies = (ReportViewerCookieCollection)info.GetValue("Cookies", typeof(ReportViewerCookieCollection)); m_headers.SetSyncObject(m_syncObject); m_cookies.SetSyncObject(m_syncObject); IReportServerCredentials credentials = (IReportServerCredentials)info.GetValue("Credentials", typeof(IReportServerCredentials)); OnCredentialsChanged(credentials); object value = info.GetValue("ViewStateValues", typeof(object[])); LoadViewState(value); }