/// <summary> /// Initializes a new instance of the <see cref="PullRequestResponseHandler"/> class. /// </summary> public PullRequestResponseHandler( Func <DatastoreContext> createContext, IAS4ResponseHandler nextHandler) { if (createContext == null) { throw new ArgumentNullException(nameof(createContext)); } if (nextHandler == null) { throw new ArgumentNullException(nameof(nextHandler)); } _createContext = createContext; _nextHandler = nextHandler; }
/// <summary> /// Initializes a new instance of the <see cref="EmptyBodyResponseHandler"/> class. /// </summary> /// <param name="nextHandler">The next Handler.</param> public EmptyBodyResponseHandler(IAS4ResponseHandler nextHandler) { _nextHandler = nextHandler; }
internal PullRequestResponseHandler(IAS4ResponseHandler nextHandler) : this(Registry.Instance.CreateDatastoreContext, nextHandler) { }