// Copyright © 2021 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. namespace CefSharp { /// /// Response returned from /// public class LoadUrlAsyncResponse { /// /// Error Code. If the network request was made successfully this value will be /// (no error occured) /// public CefErrorCode ErrorCode { get; private set; } /// /// Http Status Code. If is not equal to /// then this value will be -1. /// public int HttpStatusCode { get; private set; } /// /// If is equal to and /// is equal to 200 (OK) then the main frame loaded without /// critical error. /// public bool Success { get { return ErrorCode == CefErrorCode.None && HttpStatusCode == 200; } } /// /// Initializes a new instance of the LoadUrlAsyncResponse class. /// /// CEF Error Code /// Http Status Code public LoadUrlAsyncResponse(CefErrorCode errorCode, int httpStatusCode) { ErrorCode = errorCode; HttpStatusCode = httpStatusCode; } } }