c41e5063b7
Removed entire kbx-foundation-v36 directory as it's been replaced by the new KBX Foundation v4 patterns implemented in this session: - Registry-driven screen definitions - Density-aware UI adapter components - Feature module templates (ShadowRun, Models) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
22 lines
857 B
C#
22 lines
857 B
C#
namespace Kbx.Shared.Providers;
|
|
|
|
public enum KbxProviderResultKind { Success, NoData, TransientFailure, PermanentFailure }
|
|
|
|
public sealed record KbxProviderResult<T>(KbxProviderResultKind Kind,T? Value=null,string? Code=null,string? Message=null,int? HttpStatus=null)
|
|
{
|
|
public bool IsSuccess => Kind is KbxProviderResultKind.Success or KbxProviderResultKind.NoData;
|
|
}
|
|
|
|
public interface IKbxProviderSecretStore
|
|
{
|
|
ValueTask<string> GetRequiredAsync(string configurationKey, CancellationToken cancellationToken);
|
|
}
|
|
|
|
public interface IKbxExternalProviderAdapter
|
|
{
|
|
string ProviderId { get; }
|
|
}
|
|
|
|
public sealed record KrxApprovedServiceRequest(HttpMethod Method, Uri ServiceUri, IReadOnlyDictionary<string,string?> Query, string? Body = null);
|
|
public sealed record KisCurrentPriceRequest(string MarketDivisionCode,string StockCode,bool Sandbox=false);
|