Skip to content

Commit

Permalink
Closes #10
Browse files Browse the repository at this point in the history
  • Loading branch information
dudelis committed Nov 18, 2017
1 parent d3558b4 commit 237c1c8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ namespace K2Field.ServiceBroker.EmailTemplate.Constants
{
public static class ServiceConfig
{
public const string PlaceholderSmoSystemName = "Smo System Name (Dynamic Placeholders)";
public const string ListMethodName = "Smo List Method Name";
public const string PlaceholderPropertyName = "Dynamic Placeholder Property Name";
public const string AdoNetPropertyName = "Ado.Net Property Name";
public const string ReturnProperty = "Return Property - contains the column to return from Ado.Net";
public const string DelimitedInputIDs = "Input Parameters for Dynamic ADO.NET queries, delimited with (;)";
public const string PlaceholderSmoSystemName = "SMO System Name";
public const string ListMethodName = "SMO List Method Name";
public const string PlaceholderPropertyName = "SMO Placeholder Property Name";
public const string AdoNetPropertyName = "SMO Ado.Net Property Name";
public const string ReturnProperty = "SMO Return Property";
public const string DelimitedInputIDs = "ADO.NET query plaeholders, delimited with (;)";
public const string StaticPlaceholders = "Static Placeholders, delimited with (;)";
public const string PlaceholderWrapperSymbol = "Placeholder Wrapper in the Body/Subject and Queries - e.g. $text$";
public const string PlaceholderWrapperSymbol = "Placeholder Wrapper Symbol";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public class EmailTemplateServiceBroker : ServiceAssemblyBase, IHostableType
public override string GetConfigSection()
{
Service.ServiceConfiguration.Add(ServiceConfig.DelimitedInputIDs, true, "Id1;Id2");
Service.ServiceConfiguration.Add(ServiceConfig.PlaceholderSmoSystemName, true, "SmoSystemName");
Service.ServiceConfiguration.Add(ServiceConfig.ListMethodName, true, "List");
Service.ServiceConfiguration.Add(ServiceConfig.PlaceholderSmoSystemName, true, "K2Field_EmailTemplate_SMO_Placeholders");
Service.ServiceConfiguration.Add(ServiceConfig.ListMethodName, true, "GetList");
Service.ServiceConfiguration.Add(ServiceConfig.PlaceholderPropertyName, true, "Placeholder");
Service.ServiceConfiguration.Add(ServiceConfig.AdoNetPropertyName, true, "AdoNetQuery");
Service.ServiceConfiguration.Add(ServiceConfig.ReturnProperty, true, "ReturnProperty");
Expand All @@ -44,7 +44,7 @@ public override string GetConfigSection()
public override string DescribeSchema()
{
Service.Name = "K2Field.ServiceBroker.EmailTemplate";
Service.MetaData.DisplayName = "Email Templating";
Service.MetaData.DisplayName = "K2Field_ServiceBroker_EmailTemplate";
Service.MetaData.Description = "A Service Broker that provides email templating functionality for the various functional service objects that aid the implementation of a K2 project.";

bool requireServiceFolders = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public override List<ServiceObject> DescribeServiceObjects()
so.Properties.Add(Helper.CreateProperty(Constants.Properties.OutputEmailBody, "Output body of the email", SoType.Memo));
so.Properties.Add(Helper.CreateProperty(Constants.Properties.OutputEmailSubject, "Output body of the email", SoType.Memo));
so.Properties.Add(Helper.CreateProperty(Constants.Properties.Placeholder, "Placeholder", SoType.Text));
so.Properties.Add(Helper.CreateProperty(Constants.Properties.Placeholder, "Placeholder with Wrapper", SoType.Text));
so.Properties.Add(Helper.CreateProperty(Constants.Properties.PlaceholderWithWrapper, "Placeholder with Wrapper", SoType.Text));

var mGetEmailTemplate = Helper.CreateMethod(Constants.Methods.GetEmailTemplate, "Returns the Email Template with changed placholders", MethodType.Execute);
mGetEmailTemplate.InputProperties.Add(Constants.Properties.InputEmailBody);
Expand Down

0 comments on commit 237c1c8

Please sign in to comment.