Пример #1
0
 /// <summary>
 /// Constructor for an Exchange Gateway
 /// </summary>
 /// <param name="exchangeServer">Exchange server address for exchange searches</param>
 /// <param name="webdav">WebDAV query service</param>
 /// <param name="queryBuilder">Optional WebDAV query builder service</param>
 public FreeBusyService(
     string exchangeServer,
     WebDavQuery webdav,
     WebDavQueryBuilder queryBuilder)
 {
     exchangeServerUrl  = exchangeServer;
     webDavQuery        = webdav;
     webDavQueryBuilder = queryBuilder ?? new WebDavQueryBuilder();
 }
Пример #2
0
        /// <summary>
        /// Constructor for an Exchange Gateway
        /// </summary>
        /// <param name="exchangeServer">Exchange server address for exchange searches</param>
        /// <param name="networkLogin">Username for an exchange user</param>
        /// <param name="networkPassword">Credentail for an exchange user</param>
        public ExchangeService(string exchangeServer, string networkLogin, string networkPassword)
        {
            exchangeServerUrl = exchangeServer;

            // Set the default connection limit
            ServicePointManager.DefaultConnectionLimit = ConfigCache.ExchangeMaxConnections;

            ICredentials credentials = new NetworkCredential(networkLogin, networkPassword);

            webDavQuery  = new WebDavQuery(credentials, "Exchange");
            appointments = new AppointmentService(exchangeServerUrl, webDavQuery);
            freebusy     = new FreeBusyService(exchangeServerUrl, webDavQuery, null);
        }
 public AppointmentGatewayMock(string exchangeServer, WebDavQuery webdav) :
     base(exchangeServer, webdav)
 {
 }
Пример #4
0
 /// <summary>
 /// Constructor for an Appointment Gateway
 /// </summary>
 /// <param name="exchangeServer">Exchange server address for exchange searches</param>
 /// <param name="webdav">WebDAV query service</param>
 public AppointmentService(string exchangeServer, WebDavQuery webdav)
 {
     exchangeServerUrl = exchangeServer;
     webDavQuery       = webdav;
 }