-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1065 from Emopusta/feature/open-behavior-multiple…
…-addition-extension Open behavior multiple registration extensions
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using Microsoft.Extensions.DependencyInjection; | ||
|
||
namespace MediatR.Entities; | ||
/// <summary> | ||
/// Creates open behavior entity. | ||
/// </summary> | ||
public class OpenBehavior | ||
{ | ||
public OpenBehavior(Type openBehaviorType, ServiceLifetime serviceLifetime = ServiceLifetime.Transient) | ||
{ | ||
OpenBehaviorType = openBehaviorType; | ||
ServiceLifetime = serviceLifetime; | ||
} | ||
|
||
public Type? OpenBehaviorType { get; } | ||
public ServiceLifetime ServiceLifetime { get; } | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters