// Token: 0x06001AAF RID: 6831 RVA: 0x000648BC File Offset: 0x00062ABC private Stream TraceExceptionAndReturnInternalServerError(IOutgoingWebResponseContext webContext, Exception caughtException) { this.tracer.TraceError <Exception>((long)this.GetHashCode(), "Request failed with exception: {0}", caughtException); webContext.StatusCode = HttpStatusCode.InternalServerError; base.CallContext.ProtocolLog.Set(PhotosLoggingMetadata.GetPersonaPhotoFailed, true); return(new MemoryStream(Array <byte> .Empty)); }
internal AttachmentWebOperationContext(HttpContext httpContext, IOutgoingWebResponseContext response) { this.response = response; this.httpContext = httpContext; this.userAgent = new UserAgent(httpContext.Request.UserAgent, UserContextManager.GetUserContext(httpContext).FeaturesManager.ClientServerSettings.ChangeLayout.Enabled, httpContext.Request.Cookies); UserContext userContext = UserContextManager.GetUserContext(CallContext.Current.HttpContext, CallContext.Current.EffectiveCaller, true); this.isPublicLogon = userContext.IsPublicLogon; }
// Token: 0x0600199A RID: 6554 RVA: 0x0005A350 File Offset: 0x00058550 internal static void UpdateContentType(CallContext callContext) { IOutgoingWebResponseContext outgoingWebResponseContext = callContext.CreateWebResponseContext(); outgoingWebResponseContext.ContentType = "text/plain"; }