Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-842

Add overloads for SendWithRetry and SendWithRetryAsync that take no parametric polymorphism

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 2.1.0
    • 2.0.3
    • library
    • None

    Description

      This is a refactoring ticket. Certain operations contain no body (for example Touch) and thus need no generic parameters. For these methods we should provide overrides like this:

      IOperationResult SendWithRetry(IOperation op)
      Task<IOperationResult> SendWithRetryAsync(IOperation op);

      The current methods have placeholder types for the T (object for example) and the value or body is ignored. This is confusing and may be difficult to maintain. These should inherit from a base operation class that ignores the body. OperationBase<T> should be refactored as well, with most of the logic going into OperationBase with no generic type parameters.

      Attachments

        For Gerrit Dashboard: NCBC-842
        # Subject Branch Project Status CR V

        Activity

          People

            jmorris Jeff Morris
            jmorris Jeff Morris
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty