public static void Convert(Microsoft.Exchange.SoapWebClient.EWS.FindMessageTrackingReportRequestType request, int version)
 {
     Microsoft.Exchange.SoapWebClient.EWS.ExchangeVersionType exchangeVersionType  = VersionConverter.GetExchangeVersionType(version);
     Microsoft.Exchange.SoapWebClient.EWS.ExchangeVersionType exchangeVersionType2 = exchangeVersionType;
     if (exchangeVersionType2 == Microsoft.Exchange.SoapWebClient.EWS.ExchangeVersionType.Exchange2010)
     {
         TrackingExtendedProperties trackingExtendedProperties = TrackingExtendedProperties.CreateFromTrackingPropertyArray(request.Properties);
         Options options = new Options(VersionConverter.BasicDiagnostics.Equals(request.DiagnosticsLevel, StringComparison.Ordinal), trackingExtendedProperties.ExpandTree, trackingExtendedProperties.SearchAsRecip, request.ServerHint);
         request.DiagnosticsLevel = options.ToString();
         request.ServerHint       = null;
         request.Properties       = null;
         return;
     }
     if (request.Properties != null && request.Properties.Length == 0)
     {
         request.Properties = null;
     }
 }
Beispiel #2
0
 internal static Microsoft.Exchange.InfoWorker.Common.Availability.Proxy.FindMessageTrackingReportRequestType CopyEWSTypeToDispatcherType(Microsoft.Exchange.SoapWebClient.EWS.FindMessageTrackingReportRequestType request)
 {
     return(new Microsoft.Exchange.InfoWorker.Common.Availability.Proxy.FindMessageTrackingReportRequestType
     {
         DiagnosticsLevel = request.DiagnosticsLevel,
         Domain = request.Domain,
         EndDateTime = request.EndDateTime,
         EndDateTimeSpecified = request.EndDateTimeSpecified,
         FederatedDeliveryMailbox = MessageConverter.CopyEmailAddress(request.FederatedDeliveryMailbox),
         MessageId = request.MessageId,
         PurportedSender = MessageConverter.CopyEmailAddress(request.PurportedSender),
         Recipient = MessageConverter.CopyEmailAddress(request.Recipient),
         Scope = request.Scope,
         Sender = MessageConverter.CopyEmailAddress(request.Sender),
         StartDateTime = request.StartDateTime,
         StartDateTimeSpecified = request.StartDateTimeSpecified,
         Subject = request.Subject,
         ServerHint = request.ServerHint,
         Properties = MessageConverter.CopyTrackingProperties(request.Properties)
     });
 }
 internal FindMessageTrackingReportRequestTypeWrapper(Microsoft.Exchange.SoapWebClient.EWS.FindMessageTrackingReportRequestType request)
 {
     this.request = request;
 }