Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
        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);
        }