[longomatch] Create default templates with Static=true
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Create default templates with Static=true
- Date: Tue, 31 Mar 2015 17:39:22 +0000 (UTC)
commit c59a789c8166a900f94748c0c6fc0a7515b9a394
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Tue Mar 31 19:17:43 2015 +0200
Create default templates with Static=true
LongoMatch.Services/Services/TemplatesService.cs | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Services/Services/TemplatesService.cs
b/LongoMatch.Services/Services/TemplatesService.cs
index f8ea6d4..8c1c6fb 100644
--- a/LongoMatch.Services/Services/TemplatesService.cs
+++ b/LongoMatch.Services/Services/TemplatesService.cs
@@ -212,6 +212,7 @@ namespace LongoMatch.Services
Log.Information (String.Format ("Creating default {0} template", typeof(T)));
T t = (T)methodDefaultTemplate.Invoke (null, list);
t.Name = templateName;
+ t.Static = true;
// TODO split the registration from the creation, i.e: this function must return T
// and let the constructor register the returned template. For that we need to
refactor
// the ITemplateProvider and ITemplateProvider<T>, no need to have them separated
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]