public static LocalizedString SetPopSubscriptionConfirmation(AggregationSubscriptionIdParameter identity) { return(new LocalizedString("SetPopSubscriptionConfirmation", Strings.ResourceManager, new object[] { identity })); }
protected override void OnLoad(EventArgs e) { string subscriptionTypeParam = this.Context.Request.QueryString["st"]; string subscriptionGuidParam = this.Context.Request.QueryString["su"]; string text = this.Context.Request.QueryString["ss"]; AggregationSubscriptionType aggregationSubscriptionType; Guid subscriptionId; string queryParam; if (!this.ValidateUrlParameters(subscriptionTypeParam, subscriptionGuidParam, text, out aggregationSubscriptionType, out subscriptionId, out queryParam)) { throw new BadQueryParameterException(queryParam); } ADObjectId executingUserId = RbacPrincipal.Current.ExecutingUserId; AggregationSubscriptionIdentity subId = new AggregationSubscriptionIdentity(executingUserId, subscriptionId); AggregationSubscriptionIdParameter aggregationSubscriptionIdParameter = new AggregationSubscriptionIdParameter(subId); string text2 = aggregationSubscriptionIdParameter.ToString(); if (text2 == null) { ErrorHandlingUtil.TransferToErrorPage("unexpected"); return; } if (aggregationSubscriptionType == AggregationSubscriptionType.Pop) { PopSubscriptions popSubscriptions = new PopSubscriptions(); SetPopSubscription setPopSubscription = new SetPopSubscription(); setPopSubscription.ValidateSecret = text; setPopSubscription.AllowExceuteThruHttpGetRequest = true; Identity identity = new Identity(text2, text2); PowerShellResults <PopSubscription> results = popSubscriptions.SetObject(identity, setPopSubscription); this.DisplayResults <PopSubscription>(results); return; } ImapSubscriptions imapSubscriptions = new ImapSubscriptions(); SetImapSubscription setImapSubscription = new SetImapSubscription(); setImapSubscription.ValidateSecret = text; setImapSubscription.AllowExceuteThruHttpGetRequest = true; Identity identity2 = new Identity(text2, text2); PowerShellResults <ImapSubscription> results2 = imapSubscriptions.SetObject(identity2, setImapSubscription); this.DisplayResults <ImapSubscription>(results2); }