-
Notifications
You must be signed in to change notification settings - Fork 0
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 #43 from EvoEsports/named-slots
Named slots
- Loading branch information
Showing
11 changed files
with
267 additions
and
84 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
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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
using ManiaTemplates.ControlElements; | ||
using ManiaTemplates.Lib; | ||
|
||
namespace ManiaTemplates.Components; | ||
|
||
public class MtComponentSlot | ||
{ | ||
public required int Scope { get; init; } | ||
public required string RenderMethod { get; init; } | ||
public required string RenderMethodT4 { get; init; } | ||
public required MtDataContext Context { get; init; } | ||
public string Name { get; init; } = "default"; | ||
} |
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,18 @@ | ||
namespace ManiaTemplates.Exceptions; | ||
|
||
public class DuplicateSlotException : Exception | ||
{ | ||
public DuplicateSlotException() | ||
{ | ||
} | ||
|
||
public DuplicateSlotException(string message) | ||
: base(message) | ||
{ | ||
} | ||
|
||
public DuplicateSlotException(string message, Exception inner) | ||
: base(message, inner) | ||
{ | ||
} | ||
} |
Oops, something went wrong.