Refactor fluent download pipelines

This commit is contained in:
qwsdcvghyu89
2025-09-27 15:38:58 +10:00
parent 13c6fbaf5f
commit 94b6c0645c
33 changed files with 518 additions and 451 deletions
+24
View File
@@ -0,0 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Update="Exceptions.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>Exceptions.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Compile Update="Exceptions.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Exceptions.resx</DependentUpon>
</Compile>
</ItemGroup>
</Project>
+45
View File
@@ -59,6 +59,42 @@ namespace Beam.Exceptions {
}
}
/// <summary>
/// Looks up a localized string similar to The state of the builder is invalid..
/// </summary>
public static string fluent_invalid_state {
get {
return ResourceManager.GetString("fluent_invalid_state", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to A type conversion from &apos;{0}&apos; to &apos;{1}&apos; has failed, indicating an invalid state..
/// </summary>
public static string fluent_type_conversion_failure {
get {
return ResourceManager.GetString("fluent_type_conversion_failure", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The builder state &apos;{0}&apos; points to an unsupported unit downloader..
/// </summary>
public static string fluent_unsupported_pattern {
get {
return ResourceManager.GetString("fluent_unsupported_pattern", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The transformer type &apos;{0}&apos; is unsupported by this fluent pathway. Consider manually instantiating DownloadContext..
/// </summary>
public static string fluent_unsupported_transformer {
get {
return ResourceManager.GetString("fluent_unsupported_transformer", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to A fragment is locked when it should be free; failed to obtain updater..
/// </summary>
@@ -104,6 +140,15 @@ namespace Beam.Exceptions {
}
}
/// <summary>
/// Looks up a localized string similar to There must be at least one state in resource definition..
/// </summary>
public static string resource_definition_invalid_states_count {
get {
return ResourceManager.GetString("resource_definition_invalid_states_count", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Encountered an error while changing state.
/// </summary>
+15
View File
@@ -36,4 +36,19 @@
<data name="fragment_locked" xml:space="preserve">
<value>A fragment is locked when it should be free; failed to obtain updater.</value>
</data>
<data name="fluent_unsupported_transformer" xml:space="preserve">
<value>The transformer type '{0}' is unsupported by this fluent pathway. Consider manually instantiating DownloadContext.</value>
</data>
<data name="fluent_invalid_state" xml:space="preserve">
<value>The state of the builder is invalid.</value>
</data>
<data name="fluent_type_conversion_failure" xml:space="preserve">
<value>A type conversion from '{0}' to '{1}' has failed, indicating an invalid state.</value>
</data>
<data name="fluent_unsupported_pattern" xml:space="preserve">
<value>The builder state '{0}' points to an unsupported unit downloader.</value>
</data>
<data name="resource_definition_invalid_states_count" xml:space="preserve">
<value>There must be at least one state in resource definition.</value>
</data>
</root>