lishilei0523/SD.Framework
38.4
Weak · 8 November 2026
30.9k
lines of production code
C#
primary language
7
measurements over time
What this system is
Features
Add StubMessage class for SignalR stubs
A new StubMessage class has been added to the SignalR stubs infrastructure. This class inherits from TransientMessage and provides constructors to initialize message title and content, serving as a concrete message type for testing or stubbing SignalR communication scenarios.
src/SD.Infrastructure.SignalR.Stubs · high confidence
Added JSON serialization utilities for crontab instances
A new JsonUtil toolkit has been introduced to handle the serialization and deserialization of crontab objects to and from JSON. This utility enables the storage of scheduled tasks in Redis by converting ICrontab instances into a JSON format that preserves type and assembly information, and subsequently reconstructing them, ensuring that the original task types are correctly identified and instantiated upon retrieval.
src/SD.Infrastructure.CrontabStore.Redis/Toolkits · high confidence
Added Redis-based storage provider for scheduled tasks
Introduced a new RedisStoreProvider that implements the ICrontabStore interface, enabling scheduled tasks to be persisted in Redis using hash sets. This allows users to store, retrieve, delete, and list scheduled tasks via Redis, with task data serialized to and deserialized from JSON.
src/SD.Infrastructure.CrontabStore.Redis/StoreProvider · high confidence
Added SD.Framework configuration templates for application and infrastructure settings
New App.config.transform and Web.config.transform files have been added to the SD.Infrastructure project, introducing a comprehensive \<sd.framework\> configuration section. This section allows users to configure application identity (ID, name, version), service metadata, Entity Framework read/write connection names and partition counts, assembly locations for entities, messages, view models, and workflows, as well as settings for authentication timeouts, authorization, scheduled tasks (crontab), and external service endpoints (auto-update, file, message, OPC). It also defines the MembershipProvider type for identity management.
src/SD.Infrastructure · high confidence
Added SignalR client demo applications for sending and receiving messages
Introduced new console-based demo programs in the SignalR client infrastructure to demonstrate hub connection setup and message mediation. The Receiver application connects to the local stub endpoint, registers automatic reconnect and lifecycle handlers, and listens for incoming StubMessage instances, while the Sender application establishes a similar connection to transmit user-inputted messages via the MessageMediator.
src/SD.Infrastructure.SignalR.Client.Receiver, src/SD.Infrastructure.SignalR.Client.Sender · high confidence
Added SignalR message mediator for sending and receiving typed messages
A new MessageMediator class has been introduced in the SignalR client infrastructure to simplify message handling. It provides static methods to send messages (both synchronous and asynchronous) to a Hub and to register handlers for receiving messages, while also exposing an event that triggers when a message has been successfully sent.
src/SD.Infrastructure.SignalR.Client/Mediators · high confidence
Adds toast notifications and busy-state management to Caliburn base classes
The WPF Caliburn base classes (ScreenBase and OneActiveConductorBase) now include built-in support for displaying toast notifications (info, success, warning, error) and managing a busy state. This is enabled by new AOP aspects: BusyAttribute automatically toggles the IsBusy property around method execution, and DependencyPropertyAttribute ensures properties marked with it notify change listeners. A NotifierOptions model allows configuring toast appearance (position, lifetime, max count, etc.).
src/SD.Infrastructure.WPF.Caliburn/Base · high confidence
Configures WPF XAML namespace mappings for the SD.Framework library
The WPF infrastructure library now registers specific XAML namespace prefixes and definitions, allowing developers to use the 'sd' prefix in XAML files to access attachers, converters, custom controls, user controls, and visual 2D components from the SD.Infrastructure.WPF namespace.
src/SD.Infrastructure.WPF/Properties · high confidence
Entity base classes gain audit, concurrency, and pagination support
The entity base infrastructure in src/SD.Infrastructure/EntityBase has been expanded to support soft deletion, audit tracking, concurrency control, and pagination. AggregateRootEntity now implements the new IDeletable interface (exposing Deleted and DeletedTime properties) and includes new CreatorAccount, CreatorName, OperatorAccount, and OperatorName properties for full audit trails. A new Page\<T\> class provides a structured container for paginated results. Additionally, concurrency management is introduced via the IConcurrent interface (with a RowVersion byte array), and the PlainEntity base class now marks its Id as non-database-generated and restricts AddedTime to protected access.
src/SD.Infrastructure/EntityBase · high confidence
Initial Caliburn.Micro MAUI infrastructure with messaging and navigation helpers
This change introduces the foundational Caliburn.Micro integration for .NET MAUI. It adds base classes (ScreenBase, OneActiveConductorBase) that provide a unique InstanceUId and convenience methods for user feedback (Busy, Idle, Toast, Alert, Confirm) backed by Acr.UserDialogs and native vibration. It also includes a DependencyPropertyAspect for automatic property change notification, DI registration for the navigation service, and extension methods to support page redirection and popup-based dialog navigation.
src/SD.Infrastructure.Maui.Caliburn · high confidence
Initial MAUI infrastructure with barcode, update, and UI utilities
This change introduces the initial MAUI infrastructure, adding platform-specific capabilities for Android including a barcode broadcast receiver for scanning events and an automatic application updater that checks for and installs new APK versions. It also provides shared UI and data-layer utilities such as a RelayCommand, value converters (BooleanDescription, EnumMember, StringToNullable), a password visibility toggle, and data models for tree nodes, paginatable lists, and wrapped items.
src/SD.Infrastructure.Maui, src/SD.Infrastructure.Maui.Android · high confidence
Introduce CrontabBase infrastructure for scheduled task execution strategies
This change adds the core \CrontabBase\ library, providing a framework for defining and executing scheduled tasks. It introduces an \ICrontab\ interface and a \Crontab\ base class (renamed from the previous \Command\ class) that now uses a string-based \Id\ and tracks a \CrontabStatus\ (Pending, Scheduled, Paused) instead of a simple \Handled\ flag. The library supports multiple execution strategies via an abstract \ExecutionStrategy\ base class and its implementations: \CronExpressionStrategy\ for cron syntax, \FixedTimeStrategy\ for one-time execution, \RepeatedTimeStrategy\ for interval-based repetition, and \RecurrenceStrategy\ for recurring intervals. It also includes helper extensions for converting \DateTime\ and \TimeSpan\ to cron expressions, and defines interfaces for task storage (\ICrontabStore\) and execution (\ICrontabExecutor\).
src/SD.Infrastructure/CrontabBase · high confidence
Introduces Entity Framework Core repository and unit-of-work providers
This change adds the core EF Core implementation for the data access layer, including \EFEntityRepositoryProvider\ and \EFUnitOfWorkProvider\. These classes provide repository methods for querying entities (including async support and single-entity lookups by ID or number) and manage unit-of-work transactions. The \EFUnitOfWorkProvider\ specifically introduces entity history tracking capabilities, allowing the system to capture create, update, and delete actions with before/after snapshots. Configuration transforms are also added to support database read/write connection name settings via the \sd.framework\ configuration section.
src/SD.Infrastructure.Repository.EntityFrameworkCore · high confidence
Introduces factory classes for instantiating and managing scheduled tasks
This change adds three new factory classes to the CrontabBase infrastructure: CrontabFactory, CrontabExecutorFactory, and QuartzJobFactory. CrontabFactory provides static methods to create ICrontab instances from type information or assembly/type names, handling validation and instantiation. CrontabExecutorFactory resolves registered ICrontabExecutor instances for specific crontab types, supporting both generic and non-generic resolution via the internal ResolveMediator. QuartzJobFactory implements the Quartz IJobFactory interface, managing the lifecycle of Quartz jobs by creating them within service scopes and ensuring proper disposal of scopes and disposable jobs upon completion.
src/SD.Infrastructure.CrontabBase/Factories · high confidence
Introduction of ASP.NET Core server infrastructure with SignalR hub and global middleware
This change introduces the new \SD.Infrastructure.AspNetCore.Server\ library, providing foundational components for ASP.NET Core applications. It adds a generic \MessageHub\<T\>\ base class for SignalR communication, enabling message exchange with connected clients. Additionally, it replaces the previous static \Initializer\ with a \GlobalMiddleware\ class that handles request lifecycle management, including session ID initialization, database initialization via dependency injection, and proper disposal of the DI scope in the response pipeline.
src/SD.Infrastructure.AspNetCore.Server · high confidence
Introduction of a new message infrastructure with persistent and transient message types
The system now includes a dedicated message base layer in the MessageBase module, replacing the previous EventBase interface. This introduces an IMessageHub interface for exchanging messages, along with two new base classes: PermanentMessage for persistent, entity-based messages (including title, content, sender, and receiver details) and TransientMessage for temporary, serializable messages with similar metadata. This change shifts the underlying communication model from events to messages, providing a structured foundation for both durable and ephemeral messaging scenarios.
src/SD.Infrastructure/MessageBase · high confidence
Introduction of abstract CrontabExecutor base class for scheduled tasks
A new abstract base class, CrontabExecutor\<T\>, has been added to the CrontabBase module to standardize the execution of scheduled tasks. This class implements the Quartz IJob interface and provides a structured execution flow: it retrieves the specific Crontab configuration from the job context and delegates the actual work to an abstract Execute method, which derived classes must implement. The internal execution logic is wrapped with a \[RunningAspect\] attribute, likely for cross-cutting concerns such as logging or metrics, ensuring consistent behavior across all scheduled task implementations.
src/SD.Infrastructure.CrontabBase/Base · high confidence
MongoDB repository implementation and pagination support
The MongoDB repository layer has been implemented with a new MongoRepositoryProvider that handles entity CRUD operations (Add, Save, Remove) and bulk writes, while a new PageExtension class provides synchronous and asynchronous pagination methods for MongoDB query results.
src/SD.Infrastructure.Repository.MongoDB · high confidence
New 2D shape primitives and text rendering controls
The Visual2Ds module now includes a comprehensive set of new WPF Shape-based controls for 2D graphics: CircleVisual2D and EllipseVisual2D (with configurable center, radii, and optional center-point display), RectangleVisual2D and RotatedRectangleVisual2D (supporting position, size, rotation angle, and embedded labels with background boxes), LineVisual2D (defining start and end points), PointVisual2D (with X/Y coordinates, thickness, and labels), TextVisual2D (rendering styled text at specific coordinates), GridLinesVisual2D (configurable rows, columns, step size, and center marker), and ShapeVisual2D (a container that manages child shape lifecycle within a Canvas).
src/SD.Infrastructure.WPF/Visual2Ds · high confidence
New 3D scene and transform extension methods
This change introduces new extension methods for the WPF 3D infrastructure. The \SceneExtension\ class provides utilities to retrieve \MeshNode\ instances from scene graphs, including methods to get a single mesh node or a collection of all mesh nodes within a scene hierarchy. The \TransformExtension\ class adds helpers for converting between \Matrix3D\ and \MathNet\ \Matrix\<double\>\ types, extracting position coordinates from transformation matrices, and checking whether specific 3D points are contained within \ModelVisual3D\ or \Element3D\ objects by applying inverse transforms and bounding box checks. Additionally, an \AssemblyInfo\ file registers the XAML namespace prefix \sd\ for the \SD.Infrastructure.WPF.ThreeDims.Visual3Ds\ namespace.
src/SD.Infrastructure.WPF.3D/Extensions · high confidence
New Avalonia infrastructure with UI controls, converters, and commands
This change introduces the initial Avalonia infrastructure layer, adding a suite of custom controls (CanvasEx, FormItem, MessageBox), layout helpers (DataGridAttacher, GridExpander, GridLayout), and value converters (BooleanDescription, NullToBoolean, StringToGeometry, etc.). It also provides standard command implementations (RelayCommand, AsyncRelayCommand) and compatibility shapes to support the UI framework.
src/SD.Infrastructure.Avalonia · high confidence
New Avalonia-Caliburn infrastructure with AOP aspects and base classes
This change introduces the core infrastructure for integrating Avalonia with Caliburn.Micro. It adds AOP aspects for automatic dependency property change notification (DependencyPropertyAspect) and global exception handling with UI feedback (GlobalExceptionAspect). New base classes ScreenBase and OneActiveConductorBase provide instance UIDs, busy state management, and UI-thread execution helpers. Event handling is standardized via CaliburnEvent and extension methods that support event grouping. Additionally, ScreenExtension adds convenience methods for file and folder pickers, and BusyExtension provides a global idle mechanism to reset busy states across all windows and sub-elements.
src/SD.Infrastructure.Avalonia.Caliburn · high confidence
New BusyExtension for global idle state management
A new BusyExtension class has been added to the WPF Caliburn infrastructure, providing a GlobalIdle method that iterates through all application windows and their deep visual tree elements to reset the busy state on ScreenBase and OneActiveConductorBase view models. This enables applications to uniformly clear loading indicators or busy states across the entire UI hierarchy.
src/SD.Infrastructure.WPF.Caliburn/Extensions · high confidence
New ScheduleMediator for Quartz-based job orchestration
A new ScheduleMediator class has been added to the CrontabBase infrastructure to manage scheduled tasks using the Quartz scheduler. This component provides static methods to store and schedule cron jobs, handling the creation of job details and triggers, managing job existence checks, and persisting task status changes. It integrates with existing factory classes for job execution and strategy resolution, enabling the system to register, start, and resume scheduled tasks with configurable delays.
src/SD.Infrastructure.CrontabBase/Mediators · high confidence
New WPF 3D visualization primitives added
The Visual3Ds directory now includes a suite of new 3D visual elements built on HelixToolkit.SharpDX, enabling users to render bounding boxes, boxes, grid lines, line segments, points, rectangles, and spheres. These components expose WPF dependency properties for geometry configuration (such as center, dimensions, divisions, and colors) and automatically update their rendered mesh when properties change, providing a consistent API for adding basic 3D shapes to WPF applications.
src/SD.Infrastructure.WPF.3D/Visual3Ds · high confidence
New WPF RDLC Report Viewer control with drill-through support
A new WPF user control (ReportViewer) has been added to the SD.Infrastructure.WPF.Report library, wrapping the WinForms ReportViewer to display RDLC reports. It exposes dependency properties for the report path and data sources, and introduces a routed event to handle report drill-through actions, enabling seamless integration of RDLC reporting into WPF applications.
src/SD.Infrastructure.WPF.Report · high confidence
New WPF converters and command infrastructure added
The WPF infrastructure library now includes a set of new value converters and a command implementation to support richer UI binding scenarios. Specifically, it adds a \RelayCommand\ class for implementing \ICommand\ patterns, a \BooleanDescriptionConverter\ to map boolean values to text descriptions, an \EmptyObjectToVisibilityConverter\ for conditional visibility, and an \EnumMemberConverter\ that respects \DescriptionAttribute\ metadata. Additionally, three converters tailored for the \TreeListView\ control are introduced: \TreeListViewBackgroundConverter\ for alternating row colors, \TreeListViewIndentConverter\ for hierarchical indentation, and \TreeListViewRowIndexConverter\ for calculating absolute row indices.
src/SD.Infrastructure.WPF/Converters · high confidence
New WPF custom controls and drawing infrastructure
This change introduces a suite of new WPF custom controls and supporting infrastructure within the \SD.Infrastructure.WPF\ library. Key additions include \CanvasEx\ and \DrawableCanvasEx\, which provide an enhanced canvas for interactive drawing, shape management, and element manipulation (drag, resize, scale) with support for various shape types like rectangles, circles, and polygons. The update also adds \BrushAnimation\ for animating brush properties, \FormItem\ for structured form layouts, and \TreeListView\ with \TreeListViewItem\ for hierarchical data presentation. Supporting enums such as \CanvasMode\ and \LiveMessageType\ are included to configure control behaviors and message types.
src/SD.Infrastructure.WPF/CustomControls · high confidence
New WPF extension methods for colors, shapes, and data grouping
This update introduces a new set of extension methods in the WPF infrastructure library to simplify common UI and data operations. Users can now generate or invert colors via ColorExtension, and map between internal data models (ColorL, PointL, LineL) and WPF visual types (Color, Point, Line) using ShapeExtension, which also includes utilities for ordering polygon points. Additionally, ItemExtension provides a convenient method to group ObservableCollection items by a key, and WrapExtension offers helpers to wrap models with selection and check states.
src/SD.Infrastructure.WPF/Extensions · high confidence
New WPF image viewing and data pagination controls
Added three new WPF user controls to the infrastructure library: \ImageViewer\ for displaying a single image with middle-mouse-button panning and mouse-wheel zooming; \ImageCompareViewer\ for side-by-side comparison of two images with independent opacity controls and the same navigation gestures; and \Paginator\ for data grid pagination, featuring page size selection, first/previous/next/last page navigation, direct page entry, and a refresh event.
src/SD.Infrastructure.WPF/UserControls · high confidence
New WPF model classes and attached properties for DataGrid and PasswordBox
This change introduces several new model classes and attached properties within the WPF infrastructure library. It adds a DataGridAttacher to enable row number display in DataGrids and a PasswordBoxAttacher to support binding the Password property. Additionally, it includes model classes for tree nodes (Node), generic item wrappers (Item and Wrap\<T\>), live messaging (LiveMessage), and event handlers for canvas and shape interactions (CanvasEventHandler, ShapeEventArgs, ShapeEventHandler).
src/SD.Infrastructure.WPF/Models · high confidence
New geometric shape primitives and color model added to the Shapes library
The Shapes infrastructure now includes a comprehensive set of new geometric types: CircleL, EllipseL, LineL, PointL, PolygonL, PolylineL, RectangleL, RotatedRectangleL, and TriangleL, all inheriting from the abstract ShapeL base class. These shapes support serialization via DataContract attributes and include properties for positioning, dimensions, and styling (Fill, Stroke, StrokeThickness). A new ColorL struct has been introduced to represent RGBA colors, and the base ShapeL class now defines common attributes like Name, ZIndex, and Tag, along with KnownType declarations for the new shapes to support polymorphic serialization.
src/SD.Infrastructure/Shapes · high confidence
New workflow base activities and proxy infrastructure
The SD.Infrastructure.WWF library now includes foundational workflow components: a BookmarkActivity base class for managing workflow bookmarks and parameter restoration, a DelayActivity for introducing time-based pauses, a WorkflowApplicationProxy that wraps WorkflowApplication with event handling and conditional SQL persistence (for .NET 4.6.2+), and an ActivityFactory for dynamically creating workflow activities by assembly and type name.
src/SD.Infrastructure.WWF · high confidence
SignalR client connection lifecycle logging and authentication helpers
The SignalR client library now provides extension methods to simplify connection management and error visibility. Users can register a public key for authentication via HTTP headers and query strings using \RegisterPublicKey\. Additionally, the library automatically logs connection state changes—specifically closed, reconnecting, and reconnected events—to daily text files, capturing connection IDs, states, timestamps, and exception details to aid in troubleshooting network instability.
src/SD.Infrastructure.SignalR.Client/Extensions · high confidence
Structured logging for scheduled task execution and errors
A new RunningAspect aspect has been introduced to automatically capture and persist structured logs for scheduled tasks. When a task runs, it records the task name, start and end times, duration, and any custom log appender content to a daily running log file. If an exception occurs, it logs the error details, stack trace, and inner exceptions to a separate daily exception log file, ensuring that operational visibility into task performance and failures is maintained in the ScheduleLogs directory.
src/SD.Infrastructure.CrontabBase/Aspects · high confidence
Behavioural changes
46 commits (0 fixes) modifying templates
A change to existing behaviour in templates — 46 commits, 8 files: “更新解决方案模板;”; “补充解决方案模板;”; “更细解决方案模板;”; and 10 more.
templates · medium confidence · unverified
5 commits (0 fixes) modifying ShSoft.Framework2015.ServiceFoundation
A change to existing behaviour in ShSoft.Framework2015.ServiceFoundation — 5 commits, 1 file: “尝试通过特性标签控制继承关系映射模式,并增加单元测试项目,未完成。”; “添加领域事件单元测试项目”; “调整解决方案文件夹”; and 1 more.
ShSoft.Framework2015.ServiceFoundation · medium confidence · unverified
67 commits (0 fixes) modifying (repo-wide)
A change to existing behaviour in (repo-wide) — 67 commits, 7 files: “1、整理文件; 2、更新nuget包;”; “更新readme文件;”; “1、升级slnx; 2、更新nuget包;”; and 33 more.
(repo-wide) · low confidence · unverified
Default visual styles added for FormItem and TreeListView controls
The WPF theme resources now include default control templates and styles for the custom FormItem and TreeListView controls. Users will see a structured layout for form items with support for required-field indicators and descriptions, while TreeListView displays with a scrollable header and item rows, including visual feedback for selection and hover states.
src/SD.Infrastructure.WPF/Themes · high confidence
Entity Framework Core migration with read/write splitting and async pagination
The repository layer has been migrated from Entity Framework 6 to Entity Framework Core, introducing support for read/write splitting via separate \CommandInstance\ (write) and \QueryInstance\ (read) database contexts that use distinct connection strings. The default command timeout is now set to 120 seconds, and lazy loading proxies are enabled by default. Additionally, a new \PageExtension\ class provides synchronous and asynchronous \ToPage\ methods for efficient paged queries.
src/SD.Infrastructure.Repository.EntityFrameworkCore/Base · high confidence
Exposes internal infrastructure APIs to repository implementations
The SD.Infrastructure assembly now explicitly exposes its internal members to specific repository projects (EntityFramework, EntityFrameworkCore, MongoDB, and RavenDB) via InternalsVisibleTo attributes. This allows these repository implementations to access internal infrastructure types that were previously inaccessible, facilitating tighter integration between the core infrastructure and the data access layers.
src/SD.Infrastructure/Properties · high confidence
Fixes duplicate WCF service initialization and adds .NET 8/CoreWCF support
The WCF server infrastructure now supports .NET 8 via CoreWCF (while retaining .NET Framework 4.6.2+ compatibility) and fixes a bug where initialization logic (such as database setup and session ID generation) was executed multiple times. This is achieved by introducing a thread-safe, one-time initialization guard in \InitializationBehavior\, ensuring that resources are initialized exactly once per application lifecycle rather than on every service dispatch.
src/SD.Infrastructure.WCF.Server · high confidence
Infrastructure constants reorganized with new workflow and entity history support
The \src/SD.Infrastructure/Constants\ directory has been reorganized, moving files from \sources/\ to \src/\ and introducing several new capabilities. A new \ActionType\ enum and \EntityHistory\ class (along with \IEntityHistory\) have been added to support tracking entity changes with before/after snapshots. The \GlobalSetting\ class now manages read/write connection strings and application metadata (Id, Name, Version) using \AsyncLocal\ for session tracking. Workflow support is expanded with a new \WorkflowParameter\ class and \WorkflowExtension\ methods for parameter typification and persistence mode handling. The \ApplicationType\ enum now includes 'Applet' and 'Complex' types, and \CommonConstants\ has been updated with new database and authentication keys.
src/SD.Infrastructure/Constants · high confidence
Migrate AOP aspects from PostSharp to MrAdvice and restructure exception classes
The AOP aspects in src/SD.Infrastructure.AOP have switched from the PostSharp framework to ArxOne.MrAdvice, changing the aspect base class and the OnException method signature to use MrAdvice's MethodAdviceContext. Additionally, custom exception classes (AppService, Domain, Presentation, Repository, and UI) have been moved from SD.Infrastructure.CustomExceptions to SD.Infrastructure.AOP.Exceptions, and AppServiceException now inherits from ApplicationException instead of FaultException, removing the dependency on System.ServiceModel.
src/SD.Infrastructure.AOP · high confidence
Moved service interface files to src directory
The IApplicationService and IDomainService interface files have been relocated from the sources directory to the src directory within the SD.Infrastructure module. This structural change organizes the codebase by placing these core service contracts in the primary source location, ensuring they are included in the standard build output and project structure.
src/SD.Infrastructure/AppServiceBase, src/SD.Infrastructure/DomainServiceBase · high confidence
New configuration schema for application identity, service metadata, and EF Core settings
The framework introduces a new \sd.framework\ configuration section (\FrameworkSection\) that allows users to define application identity (Id, Name, Version), service metadata (Name, Display Name, Description), and Entity Framework Core settings (read/write connection names, partition count). This section also includes configuration nodes for specifying entity and view-model assembly locations, as well as membership provider types and crontab strategy definitions, providing a centralized way to manage these infrastructure settings.
src/SD.Infrastructure/Configurations · high confidence
PageModel pagination class no longer implements IEnumerable
The PageModel class in the DTOBase infrastructure layer has been refactored to remove its implementation of the IEnumerable interface. This change means that PageModel instances can no longer be directly iterated over using foreach loops or LINQ methods that require enumeration; users must now explicitly access the Datas property to retrieve the underlying collection of items.
src/SD.Infrastructure/DTOBase · high confidence
Refactored eventing interfaces to clarify domain event handling
The eventing infrastructure in src/SD.Infrastructure/EventBase has been reorganized to better reflect its role in domain-driven design. The base interface IMessage was renamed to IEvent, and the previous ICommand interface was replaced by IEventHandler to explicitly define event consumers. The generic IEventHandler\<T\> interface was refined to remove the non-generic base's Sort property from the generic contract (retaining it in the non-generic base) and added a Handle method for processing event sources, while IEventStore was moved to the new location without functional changes.
src/SD.Infrastructure/EventBase · high confidence
Renames and relocates presentation base classes to new namespace
The presentation base infrastructure has been reorganized: the \ViewModel\ class is now \ModelBase\ and the \IPresenter\ interface has been moved from \SD.Infrastructure.MVC\ to \SD.Infrastructure.PresentationBase\. A new \Model\ class has been added in this namespace, inheriting from \ModelBase\ and providing \IsSelected\ and \IsChecked\ properties for selection state management.
src/SD.Infrastructure/PresentationBase · high confidence
Repository interfaces refactored with async support and simplified APIs
The repository base interfaces in \src/SD.Infrastructure/RepositoryBase\ have been updated to support asynchronous operations and simplified usage. New async methods (e.g., \SingleOrDefaultAsync\, \FindAsync\, \FindByPageAsync\) are now available on \IAggRootRepository\ and \IEntityRepository\, allowing non-blocking data access. The \IUnitOfWork\ interface has been expanded to include entity history retrieval (\GetEntityHistory\) and local transaction management. Additionally, the \ISimpleRepository\ API has been streamlined by removing the \RemoveAll\ method and simplifying documentation, while \RepositoryExtension\ now provides robust filtering expression building for entities.
src/SD.Infrastructure/RepositoryBase · high confidence
RequireAuthorizationAttribute simplified to use authority path
The RequireAuthorizationAttribute constructor and properties have been refactored to accept a single authority path string instead of separate authority name, English name, and description parameters. This simplifies the attribute usage by consolidating authorization requirements into a single path-based identifier.
src/SD.Infrastructure/Attributes · high confidence
Restructured membership data models and added client identification
The membership infrastructure models have been reorganized to better separate concerns: the original LoginInfo class has been refactored into LoginAuthorityInfo to specifically represent permission details (system number, application type, authority name, and path), while new LoginSystemInfo and LoginMenuInfo classes have been introduced to model system access and hierarchical menu structures respectively. The main LoginInfo class now aggregates these collections and includes a new ClientId property, enabling the system to track which client application initiated the login session alongside standard user credentials and tenant information.
src/SD.Infrastructure/Membership · high confidence
Stub service contracts moved to source directories
The ProductContract implementation and IProductContract interface, previously located in the IntegrationTests folder, have been relocated to their respective source directories (src/SD.Infrastructure.StubAppService and src/SD.Infrastructure.StubIAppService). This change reorganizes the project structure to treat these stub components as part of the main application infrastructure rather than test artifacts, without altering their code or behavior.
src/SD.Infrastructure.StubAppService, src/SD.Infrastructure.StubIAppService · high confidence
Updated IoC configuration to register Redis Crontab Store provider
The App.config.transform and Web.config.transform files have been moved from the EventBase project to the CrontabStore.Redis project and updated to register the new service provider. The configuration now uses the \<sd.ioc\> section instead of \<injectionRegisterConfiguration\> to map the interface to SD.Infrastructure.CrontabStore.RedisStoreProvider within the SD.Infrastructure.CrontabStore.Redis assembly, replacing the previous MemoryStoreProvider registration.
src/SD.Infrastructure.CrontabStore.Redis · high confidence
Test coverage
Added CoreWCF test host infrastructure; Added EF Core test scaffolding and integration tests; Added SignalR server test harness with Redis backplane support; Added WCF test host and updated configuration for multi-protocol support; Added stub crontab definitions and executors for unit testing; Added test configuration for CrontabBase tests; Added test configuration for SD.Framework; Added test infrastructure for AspNetCore integration; Added tests for configuration, pagination, and shape geometry; Added unit tests for crontab configuration and scheduling; MongoDB repository tests restructured and modernized for .NET 8; Restructure WCF test project and add .NET 8/CoreWCF support.
Dependencies
Infrastructure projects migrated to SDK-style format and modern .NET targets
The infrastructure layer has been restructured by replacing legacy .csproj and packages.config files with modern SDK-style project definitions. This change updates target frameworks to include .NET 8.0 and .NET 10.0 (alongside legacy .NET Framework versions like 4.6.2 and 4.8), and upgrades key dependencies such as Entity Framework Core to version 10.0.9, Quartz to 3.18.2, and Avalonia to 11.3.18. The migration also introduces new infrastructure modules for ASP.NET Core, CoreWCF, MAUI, and SignalR, while removing obsolete packages like AutoMapper and PostSharp in favor of modern alternatives like MrAdvice.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 41 → 38 (-2.5)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.
Lenses
- Code Health 58 → 58 (+0.0)
- Architecture 81 → 61 (-19.9)
- Maturity 47 → 47 (+0.0)
- Readiness 26 → 22 (-3.7)
- Security 48 → 48 (+0.0)
- Performance 100 → 100 (+0.0)
Resolved (4)
- Duplicated block (7 lines × 2) (src/SD.Infrastructure.WPF.3D/Extensions/TransformExtension.cs)
- Projects may be oversized for their cohesion
- While ExistsName is consistent between the interface and one implementation, the parallel concept of checking by ID/Number is named ExistsNo in other implementations (MongoRepositoryProvider, IAggRootRepository). The term 'No' is ambiguous (Number? ID? No as in negative?). However, within the specific pair provided, they are consistent. The inconsistency lies across the population: ExistsNo vs ExistsName. Since ExistsNo is used for Guid/Name checks in Mongo and Interface, and ExistsName is used in EF, this suggests a split in vocabulary for 'lookup by identifier'.
- redundant comment (src/SD.Infrastructure.Avalonia/CustomControls/CanvasEx.cs)
New (4)
- Projects may be oversized for their cohesion (src/SD.Infrastructure.Avalonia/SD.Infrastructure.Avalonia.csproj)
- Projects may be oversized for their cohesion (src/SD.Infrastructure.WPF/SD.Infrastructure.WPF.csproj)
- Projects may be oversized for their cohesion (src/SD.Infrastructure/SD.Infrastructure.csproj)
- Split SD.Infrastructure(net462) (src/SD.Infrastructure/SD.Infrastructure.csproj)
Architecture
- Unchanged — 3 containers · 0 contexts · 0 edges
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
lishilei0523/SD.Framework was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 8 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 244241e8cc3873b08a8d97bcb523e2f7ec380133 — the exact code this score is about.
- Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-45ab2cab63de.