Skip to content

Add constructor that can override values of AllowMultipleDisposeCalls and AllowMultipleDisposeAttempts properties #35

Description

@konard

public Disposable(Action action)

At the moment the workaround is used:

public class DisposableWithMultipleCallsAllowed : Disposable
{
   public DisposableWithMultipleCallsAllowed(Disposal disposal) : base(disposal) { }
   protected override bool AllowMultipleDisposeCalls => true;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions