Skip to content

Commit beca41f

Browse files
docs(internal): add warning about implementing interface
1 parent 0fd1311 commit beca41f

16 files changed

+71
-10
lines changed

src/ArcadeDotnet/Core/FreezableDictionary.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
namespace ArcadeDotnet.Core;
88

99
/// <summary>
10-
/// A dictionary that can be mutated and then frozen once no more mutations are expected.<br
11-
/// /><br />
10+
/// A dictionary that can be mutated and then frozen once no more mutations are expected.
1211
///
1312
/// <para>This is useful for allowing a dictionary to be modified by a class's `init`
1413
/// properties, but then preventing it from being modified afterwards.</para>

src/ArcadeDotnet/Core/IVariant.cs

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/ArcadeDotnet/Core/ModelBase.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,11 @@ public IReadOnlyDictionary<string, JsonElement> Properties
187187
public abstract void Validate();
188188
}
189189

190+
/// <summary>
191+
/// NOTE: Do not inherit from this type outside the SDK unless you're okay with breaking
192+
/// changes in non-major versions. We may add new methods in the future that cause
193+
/// existing derived classes to break.
194+
/// </summary>
190195
interface IFromRaw<T>
191196
{
192197
static abstract T FromRawUnchecked(IReadOnlyDictionary<string, JsonElement> properties);

src/ArcadeDotnet/IArcadeClient.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77

88
namespace ArcadeDotnet;
99

10+
/// <summary>
11+
/// NOTE: Do not inherit from this type outside the SDK unless you're okay with breaking
12+
/// changes in non-major versions. We may add new methods in the future that cause
13+
/// existing derived classes to break.
14+
/// </summary>
1015
public interface IArcadeClient
1116
{
1217
HttpClient HttpClient { get; init; }

src/ArcadeDotnet/Services/Admin/IAuthProviderService.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66

77
namespace ArcadeDotnet.Services.Admin;
88

9+
/// <summary>
10+
/// NOTE: Do not inherit from this type outside the SDK unless you're okay with breaking
11+
/// changes in non-major versions. We may add new methods in the future that cause
12+
/// existing derived classes to break.
13+
/// </summary>
914
public interface IAuthProviderService
1015
{
1116
IAuthProviderService WithOptions(Func<ClientOptions, ClientOptions> modifier);

src/ArcadeDotnet/Services/Admin/ISecretService.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66

77
namespace ArcadeDotnet.Services.Admin;
88

9+
/// <summary>
10+
/// NOTE: Do not inherit from this type outside the SDK unless you're okay with breaking
11+
/// changes in non-major versions. We may add new methods in the future that cause
12+
/// existing derived classes to break.
13+
/// </summary>
914
public interface ISecretService
1015
{
1116
ISecretService WithOptions(Func<ClientOptions, ClientOptions> modifier);

src/ArcadeDotnet/Services/Admin/IUserConnectionService.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66

77
namespace ArcadeDotnet.Services.Admin;
88

9+
/// <summary>
10+
/// NOTE: Do not inherit from this type outside the SDK unless you're okay with breaking
11+
/// changes in non-major versions. We may add new methods in the future that cause
12+
/// existing derived classes to break.
13+
/// </summary>
914
public interface IUserConnectionService
1015
{
1116
IUserConnectionService WithOptions(Func<ClientOptions, ClientOptions> modifier);

src/ArcadeDotnet/Services/Chat/ICompletionService.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77

88
namespace ArcadeDotnet.Services.Chat;
99

10+
/// <summary>
11+
/// NOTE: Do not inherit from this type outside the SDK unless you're okay with breaking
12+
/// changes in non-major versions. We may add new methods in the future that cause
13+
/// existing derived classes to break.
14+
/// </summary>
1015
public interface ICompletionService
1116
{
1217
ICompletionService WithOptions(Func<ClientOptions, ClientOptions> modifier);

src/ArcadeDotnet/Services/IAdminService.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
namespace ArcadeDotnet.Services;
66

7+
/// <summary>
8+
/// NOTE: Do not inherit from this type outside the SDK unless you're okay with breaking
9+
/// changes in non-major versions. We may add new methods in the future that cause
10+
/// existing derived classes to break.
11+
/// </summary>
712
public interface IAdminService
813
{
914
IAdminService WithOptions(Func<ClientOptions, ClientOptions> modifier);

src/ArcadeDotnet/Services/IAuthService.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77

88
namespace ArcadeDotnet.Services;
99

10+
/// <summary>
11+
/// NOTE: Do not inherit from this type outside the SDK unless you're okay with breaking
12+
/// changes in non-major versions. We may add new methods in the future that cause
13+
/// existing derived classes to break.
14+
/// </summary>
1015
public interface IAuthService
1116
{
1217
IAuthService WithOptions(Func<ClientOptions, ClientOptions> modifier);

0 commit comments

Comments
 (0)