Introduce Beam.Fluent and Beam.Models projects
Added new Beam.Fluent and Beam.Models projects with staged download builder and data context models. Refactored and moved model classes from Beam.Temporary.Cli to Beam.Models. Added new data providers and extended DataBindings in Beam.Dynamic. Renamed Beam.Puppeteer to Beam.Playwright and updated related classes. Updated project references and package versions. Removed obsolete and unused files from Beam.Temporary.Cli.
This commit is contained in:
+13
-5
@@ -2,18 +2,26 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Beam {
|
||||
public readonly struct ImmutableState(object[] state) {
|
||||
readonly object[] state = state;
|
||||
public readonly struct ImmutableState {
|
||||
readonly string[] state;
|
||||
|
||||
public readonly Span<object> GetState() => state;
|
||||
[JsonConstructor]
|
||||
public ImmutableState(string[] state) {
|
||||
this.state = state ?? [];
|
||||
}
|
||||
|
||||
public string[] State => state ?? [];
|
||||
|
||||
public readonly Span<string> AsSpan() => state ?? [];
|
||||
|
||||
public readonly State Copy()
|
||||
=> new((object[])state.Clone());
|
||||
=> new((string[])(state ?? []).Clone());
|
||||
|
||||
public readonly object this[Index i] {
|
||||
public readonly string this[Index i] {
|
||||
get => state[i];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user