Пример #1
0
        private void SetupFilterBindings()
        {
            StaticBinding staticBinding = new StaticBinding();

            staticBinding.Name = "Identity";
            RecipientMessageTrackingReportId recipientMessageTrackingReportId = RecipientMessageTrackingReportId.Parse(this.deliveryReportProperties.ObjectIdentity);

            staticBinding.Value = recipientMessageTrackingReportId.MessageTrackingReportId;
            if (this.wrapperPanel == null)
            {
                this.wrapperPanel = (DockPanel)this.deliveryReportProperties.FindControl("wrapperPanel");
            }
            this.deliveryStatusDataSource = (WebServiceListSource)this.wrapperPanel.Controls[0].FindControl("deliveryStatusDataSource");
            this.deliveryStatusDataSource.FilterParameters.Add(staticBinding);
            ComponentBinding componentBinding = new ComponentBinding(this.recipientSummary, "Status");

            componentBinding.Name = "RecipientStatus";
            this.deliveryStatusDataSource.FilterParameters.Add(componentBinding);
            if (!string.IsNullOrEmpty(recipientMessageTrackingReportId.Recipient))
            {
                StaticBinding staticBinding2 = new StaticBinding();
                staticBinding2.Name  = "Recipients";
                staticBinding2.Value = recipientMessageTrackingReportId.Recipient;
                this.deliveryStatusDataSource.FilterParameters.Add(staticBinding2);
                return;
            }
            ComponentBinding componentBinding2 = new ComponentBinding(this.toAddress, "value");

            componentBinding2.Name = "Recipients";
            this.deliveryStatusDataSource.FilterParameters.Add(componentBinding2);
        }
        public PowerShellResults <MessageTrackingReportRow> GetObject(Identity identity)
        {
            RecipientMessageTrackingReportId   recipientMessageTrackingReportId   = RecipientMessageTrackingReportId.Parse(identity);
            GetMessageTrackingReportParameters getMessageTrackingReportParameters = new GetMessageTrackingReportParameters();

            getMessageTrackingReportParameters.Identity               = recipientMessageTrackingReportId.MessageTrackingReportId;
            getMessageTrackingReportParameters.ResultSize             = 30;
            getMessageTrackingReportParameters.ByPassDelegateChecking = true;
            getMessageTrackingReportParameters.DetailLevel            = MessageTrackingDetailLevel.Verbose;
            if (!string.IsNullOrEmpty(recipientMessageTrackingReportId.Recipient))
            {
                getMessageTrackingReportParameters.Recipients = recipientMessageTrackingReportId.Recipient;
            }
            PSCommand psCommand = new PSCommand().AddCommand("Get-MessageTrackingReport").AddParameters(getMessageTrackingReportParameters);

            return(base.Invoke <MessageTrackingReportRow>(psCommand));
        }
Пример #3
0
        public PowerShellResults <RecipientTrackingEventRow> GetObject(Identity identity)
        {
            RecipientMessageTrackingReportId recipientMessageTrackingReportId = RecipientMessageTrackingReportId.Parse(identity);

            if (string.IsNullOrEmpty(recipientMessageTrackingReportId.Recipient))
            {
                throw new FaultException(new ArgumentException("Identity").Message);
            }
            GetMessageTrackingReportDetailParameters getMessageTrackingReportDetailParameters = new GetMessageTrackingReportDetailParameters();

            getMessageTrackingReportDetailParameters.Identity               = recipientMessageTrackingReportId.MessageTrackingReportId;
            getMessageTrackingReportDetailParameters.RecipientPathFilter    = recipientMessageTrackingReportId.Recipient;
            getMessageTrackingReportDetailParameters.ReportTemplate         = ReportTemplate.RecipientPath;
            getMessageTrackingReportDetailParameters.ByPassDelegateChecking = true;
            getMessageTrackingReportDetailParameters.DetailLevel            = MessageTrackingDetailLevel.Verbose;
            PSCommand psCommand = new PSCommand().AddCommand("Get-MessageTrackingReport").AddParameters(getMessageTrackingReportDetailParameters);

            return(base.Invoke <RecipientTrackingEventRow>(psCommand));
        }
 public static RecipientMessageTrackingReportId Parse(Identity identity)
 {
     return(RecipientMessageTrackingReportId.Parse(identity.RawIdentity));
 }