mirror of
https://github.com/ZuneDev/MicrosoftIris.git
synced 2026-07-27 13:13:29 -07:00
Make some markup-related classes public
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
internal static class CommonExtensions
|
||||
public static class CommonExtensions
|
||||
{
|
||||
/// <inheritdoc cref="SerializationInfo.GetValue(string, Type)"/>
|
||||
public static T GetValue<T>(this SerializationInfo info, string name)
|
||||
|
||||
@@ -6,5 +6,5 @@
|
||||
|
||||
namespace Microsoft.Iris.Markup
|
||||
{
|
||||
internal delegate LoadResult CreateLoadResultHandler(string uri);
|
||||
public delegate LoadResult CreateLoadResultHandler(string uri);
|
||||
}
|
||||
|
||||
@@ -9,14 +9,14 @@ using System;
|
||||
namespace Microsoft.Iris.Markup
|
||||
{
|
||||
[Serializable]
|
||||
internal class ErrorLoadResult : LoadResult
|
||||
public class ErrorLoadResult : LoadResult
|
||||
{
|
||||
public ErrorLoadResult(string uri)
|
||||
: base(uri)
|
||||
{
|
||||
}
|
||||
|
||||
public override TypeSchema FindType(string name) => (TypeSchema)null;
|
||||
public override TypeSchema FindType(string name) => null;
|
||||
|
||||
public override LoadResultStatus Status => LoadResultStatus.Error;
|
||||
}
|
||||
|
||||
@@ -184,7 +184,7 @@ namespace Microsoft.Iris.Markup
|
||||
|
||||
public static void UnloadAll() => LoadResultCache.Clear();
|
||||
|
||||
internal static bool RegisterFactoryByProtocol(string protocol, CreateLoadResultHandler handler)
|
||||
public static bool RegisterFactoryByProtocol(string protocol, CreateLoadResultHandler handler)
|
||||
{
|
||||
if (protocol.EndsWith("://", StringComparison.Ordinal))
|
||||
protocol = protocol.Substring(0, protocol.Length - 3);
|
||||
@@ -207,7 +207,7 @@ namespace Microsoft.Iris.Markup
|
||||
return flag;
|
||||
}
|
||||
|
||||
internal static bool RegisterFactoryByExtension(string extension, CreateLoadResultHandler handler)
|
||||
public static bool RegisterFactoryByExtension(string extension, CreateLoadResultHandler handler)
|
||||
{
|
||||
bool flag = true;
|
||||
if (!extension.StartsWith(".", StringComparison.Ordinal))
|
||||
|
||||
@@ -10,7 +10,7 @@ using System.Collections.Generic;
|
||||
|
||||
namespace Microsoft.Iris.Session
|
||||
{
|
||||
internal static class ErrorManager
|
||||
public static class ErrorManager
|
||||
{
|
||||
private static uint s_totalErrorsReported;
|
||||
private static Stack<ErrorManager.Context> s_contextStack = new Stack<ErrorManager.Context>();
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
namespace Microsoft.Iris.Session
|
||||
{
|
||||
internal struct ErrorWatermark
|
||||
public struct ErrorWatermark
|
||||
{
|
||||
private uint _currentErrorCount;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
namespace Microsoft.Iris.Session
|
||||
{
|
||||
internal interface IErrorContextSource
|
||||
public interface IErrorContextSource
|
||||
{
|
||||
string GetErrorContextDescription();
|
||||
|
||||
|
||||
@@ -8,5 +8,5 @@ using System.Collections;
|
||||
|
||||
namespace Microsoft.Iris.Session
|
||||
{
|
||||
internal delegate void NotifyErrorBatch(IList errors);
|
||||
public delegate void NotifyErrorBatch(IList errors);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user