Skip to content

Commit 787f95d

Browse files
committed
Add BlockcoreLogo as template
1 parent c18e2ce commit 787f95d

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

src/Blockcore/FullNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public IFullNode Initialize(IFullNodeServiceProvider serviceProvider)
178178

179179
this.AsyncProvider = this.Services.ServiceProvider.GetService<IAsyncProvider>();
180180

181-
this.logger.LogInformation(Properties.Resources.Logo.Replace("{title}", this.Network.Name + " - Full Consensus Validating Node"));
181+
this.logger.LogInformation(Properties.BlockcoreLogo.Logo);
182182
this.logger.LogInformation("Full node initialized on {0}.", this.Network.Name);
183183

184184
this.State = FullNodeState.Initialized;
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
namespace Blockcore.Properties
2+
{
3+
public static class BlockcoreLogo
4+
{
5+
static BlockcoreLogo()
6+
{
7+
LogoTemplate = Resources.Logo;
8+
SetTitle("Full Consensus Validating Node");
9+
}
10+
11+
public static void SetTitle(string title)
12+
{
13+
Logo = LogoTemplate.Replace("{title}", title);
14+
}
15+
16+
public static string LogoTemplate { get; set; }
17+
18+
public static string Logo { get; set; }
19+
}
20+
}

0 commit comments

Comments
 (0)