コード例 #1
0
        public static RecipientMessageTrackingReportId Parse(string rawIdentity)
        {
            RecipientMessageTrackingReportId recipientMessageTrackingReportId = new RecipientMessageTrackingReportId(rawIdentity);

            recipientMessageTrackingReportId.ParseRawIdentity();
            return(recipientMessageTrackingReportId);
        }
コード例 #2
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);
        }
コード例 #3
0
        private static Identity CreateRecipientStatusRowIdentity(Identity messageTrackingReportIdentity, RecipientTrackingEvent trackingEvent)
        {
            string recipient   = trackingEvent.RecipientAddress.ToString();
            string displayName = trackingEvent.RecipientAddress.ToString();
            RecipientMessageTrackingReportId recipientMessageTrackingReportId = new RecipientMessageTrackingReportId(messageTrackingReportIdentity.RawIdentity, recipient);

            return(new Identity(recipientMessageTrackingReportId.RawIdentity, displayName));
        }
コード例 #4
0
        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));
        }
コード例 #5
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));
        }
コード例 #6
0
 public static RecipientMessageTrackingReportId Parse(Identity identity)
 {
     return(RecipientMessageTrackingReportId.Parse(identity.RawIdentity));
 }