Skip to content

Commit

Permalink
#59 IOwned and Owned<T> are public types and this prevents Pure.DI fr…
Browse files Browse the repository at this point in the history
…om being used in multiple assemblies
  • Loading branch information
NikolayPianikov committed May 23, 2024
1 parent 121dd4c commit 0ba8acc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public List<IDisposable> Baseline()
}

[Benchmark]
public IOwned AddDisposable()
public IDisposable AddDisposable()
{
var owned = new Owned();
for (var i = 0; i < Count; i++)
Expand Down
4 changes: 2 additions & 2 deletions src/Pure.DI.Core/Components/Api.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,7 @@ internal enum Tag
/// <summary>
/// Gives the ability to manage disposable objects.
/// </summary>
public interface IOwned
internal interface IOwned
: global::System.IDisposable
#if NETCOREAPP3_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER
, global::System.IAsyncDisposable
Expand Down Expand Up @@ -1270,7 +1270,7 @@ partial void OnDisposeAsyncException<T>(T asynDisposableInstance, Exception exce
/// </summary>
[global::System.Diagnostics.DebuggerDisplay("{Value}")]
[global::System.Diagnostics.DebuggerTypeProxy(typeof(global::Pure.DI.Owned<>.DebugView))]
public readonly struct Owned<T> : global::Pure.DI.IOwned
internal readonly struct Owned<T> : global::Pure.DI.IOwned
{
/// <summary>
/// The value.
Expand Down

0 comments on commit 0ba8acc

Please sign in to comment.