Procházet zdrojové kódy

Abstract base class for ISubscribeFilter (#911)

master
EMRE TEOMAN před 3 roky
committed by GitHub
rodič
revize
67efbe1563
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: 4AEE18F83AFDEB23
1 změnil soubory, kde provedl 36 přidání a 0 odebrání
  1. +36
    -0
      src/DotNetCore.CAP/Internal/Filter/SubscribeFilter.cs

+ 36
- 0
src/DotNetCore.CAP/Internal/Filter/SubscribeFilter.cs Zobrazit soubor

@@ -0,0 +1,36 @@
// Copyright (c) .NET Core Community. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

// ReSharper disable once CheckNamespace
namespace DotNetCore.CAP.Filter
{
/// <summary>
/// Abstract base class for ISubscribeFilter for use when implementing a subset of the interface methods.
/// </summary>
public abstract class SubscribeFilter : ISubscribeFilter
{
/// <summary>
/// Called before the subscriber executes.
/// </summary>
/// <param name="context">The <see cref="ExecutingContext"/>.</param>
public virtual void OnSubscribeExecuting(ExecutingContext context)
{
}

/// <summary>
/// Called after the subscriber executes.
/// </summary>
/// <param name="context">The <see cref="ExecutedContext"/>.</param>
public virtual void OnSubscribeExecuted(ExecutedContext context)
{
}

/// <summary>
/// Called after the subscriber has thrown an <see cref="System.Exception"/>.
/// </summary>
/// <param name="context">The <see cref="ExceptionContext"/>.</param>
public virtual void OnSubscribeException(ExceptionContext context)
{
}
}
}

Načítá se…
Zrušit
Uložit