File: AppHost\PlaceHolderNotFoundInAppHostException.cs
Web Access
Project: src\src\runtime\src\installer\managed\Microsoft.NET.HostModel\Microsoft.NET.HostModel.csproj (Microsoft.NET.HostModel)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System;

namespace Microsoft.NET.HostModel.AppHost
{
    /// <summary>
    /// Unable to use input file as a valid application host executable, as it does not contain
    /// the expected placeholder byte sequence.
    /// </summary>
    public class PlaceHolderNotFoundInAppHostException : AppHostUpdateException
    {
        public byte[] MissingPattern { get; }
        public PlaceHolderNotFoundInAppHostException(byte[] pattern)
        {
            MissingPattern = pattern;
        }
        public PlaceHolderNotFoundInAppHostException(ReadOnlySpan<byte> pattern)
        {
            MissingPattern = pattern.ToArray();
        }
    }
}