Example #1
0
 protected void GetNavBarInfoAndHandleException(ShellServiceClient client, NavBarInfoRequest request)
 {
     try
     {
         this.CallShellService(client, request);
     }
     catch (EndpointNotFoundException ex)
     {
         this.shellServiceException = ex;
     }
     catch (ActionNotSupportedException ex2)
     {
         this.shellServiceException = ex2;
     }
     catch (FaultException ex3)
     {
         this.shellServiceException = ex3;
     }
     catch (MessageSecurityException ex4)
     {
         this.shellServiceException = ex4;
     }
     finally
     {
         client.Close();
     }
 }
        protected override BposNavBarInfo ExecuteRequest(ShellServiceClient client, string cultureName, string userPrincipalName, string userPuid, AuthZClientInfo effectiveCaller, string trackingGuid)
        {
            NavBarInfoRequest navBarInfoRequest = new NavBarInfoRequest
            {
                BrandId           = null,
                CultureName       = cultureName,
                CurrentMainLinkID = NavBarMainLinkID.Outlook,
                UserPrincipalName = userPrincipalName,
                UserPuid          = userPuid,
                WorkloadId        = WorkloadAuthenticationId.Exchange,
                TrackingGuid      = trackingGuid
            };
            NavBarInfo navBarInfo = client.GetNavBarInfo(navBarInfoRequest);

            return(this.CreateBposNavBarInfo(navBarInfo, effectiveCaller));
        }
Example #3
0
 public void PrepareNavBarPack()
 {
     if (this.userPuid != null && !this.fallbackMode)
     {
         if (this.forceReload || !this.UseNavBarPackCache)
         {
             ShellServiceClient shellServiceClient = new ShellServiceClient(NavBarClientBase.endPointConfiguration);
             shellServiceClient.ClientCredentials.ClientCertificate.Certificate = NavBarClientBase.certificate;
             NavBarInfoRequest navBarInfoRequest = this.CreateRequest();
             ExTraceGlobals.WebServiceTracer.TraceInformation(0, 0L, string.Format("NavBarInfoRequest created. TrackingGuid: {0}, WorkloadID: {1}", navBarInfoRequest.TrackingGuid, navBarInfoRequest.WorkloadId.ToString()));
             this.BeginGetNavBarPack(shellServiceClient, navBarInfoRequest);
             return;
         }
         this.navBarPack = this.TryGetNavBarPackFromCache();
     }
 }
Example #4
0
        protected override void BeginGetNavBarPack(ShellServiceClient client, NavBarInfoRequest request)
        {
            string value = HttpContext.Current.Request.QueryString["flight"];

            if (!string.IsNullOrEmpty(value))
            {
                EndpointAddress address = client.Endpoint.Address;
                Uri             uri     = new Uri(EcpUrl.AppendQueryParameter(address.Uri.AbsoluteUri, "flight", value));
                client.Endpoint.Address = new EndpointAddress(uri, address.Identity, new AddressHeader[0]);
            }
            this.stopwatch = new Stopwatch();
            this.stopwatch.Start();
            this.shellServiceTask = new Task(delegate()
            {
                this.GetNavBarInfoAndHandleException(client, request);
            });
            this.shellServiceTask.Start();
        }
Example #5
0
 protected override void CallShellService(ShellServiceClient client, NavBarInfoRequest request)
 {
     this.shellInfo = client.GetShellInfo((ShellInfoRequest)request);
     this.stopwatch.Stop();
     ExTraceGlobals.WebServiceTracer.TraceInformation(0, 0L, string.Format("Successfully called shell service in {0}ms", this.stopwatch.ElapsedMilliseconds));
 }
Example #6
0
 // Token: 0x0600050F RID: 1295 RVA: 0x0000E8EE File Offset: 0x0000CAEE
 public IAsyncResult BeginGetNavBarInfo(NavBarInfoRequest navBarInfoRequest, AsyncCallback callback, object asyncState)
 {
     return(base.Channel.BeginGetNavBarInfo(navBarInfoRequest, callback, asyncState));
 }
Example #7
0
 // Token: 0x0600050E RID: 1294 RVA: 0x0000E8E0 File Offset: 0x0000CAE0
 public NavBarInfo GetNavBarInfo(NavBarInfoRequest navBarInfoRequest)
 {
     return(base.Channel.GetNavBarInfo(navBarInfoRequest));
 }
Example #8
0
 protected override void CallShellService(ShellServiceClient client, NavBarInfoRequest request)
 {
     this.navbarInfo = client.GetNavBarInfo(request);
 }
Example #9
0
 protected abstract void CallShellService(ShellServiceClient client, NavBarInfoRequest request);
Example #10
0
 protected virtual void BeginGetNavBarPack(ShellServiceClient client, NavBarInfoRequest request)
 {
     this.GetNavBarInfoAndHandleException(client, request);
 }