-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIBridgeAbstractionsImpl.cs
More file actions
30 lines (24 loc) · 1.02 KB
/
Copy pathIBridgeAbstractionsImpl.cs
File metadata and controls
30 lines (24 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
namespace GofPatterns.Structural.BridgePattern.Implementations;
/// <summary>
/// Bridge abstraction interface with multiple implementations.
/// </summary>
/// <typeparam name="TImplementation"></typeparam>
public interface IBridgeAbstractionsImpl<TImplementation> : IBridgeAbstraction<TImplementation>
where TImplementation : IBridgeImplementationImpl
{
void Add(TImplementation implementation, params TImplementation[] implementations);
void Execute();
int ImplementationCount { get; }
}
/// <summary>
/// Bridge abstraction interface with multiple implementations and input.
/// </summary>
/// <typeparam name="TImplementation"></typeparam>
/// <typeparam name="TInput"></typeparam>
public interface IBridgeAbstractionsImpl<TImplementation, in TInput> : IBridgeAbstraction<TImplementation>
where TImplementation : IBridgeImplementationImpl<TInput>
{
void Add(TImplementation implementation, params TImplementation[] implementations);
void Execute(TInput input);
int ImplementationCount { get; }
}