Namespace: DirectScale.Disco.Extension.Hooks.Associates.Notifications
GetCustomEmailParameters
Basic Implementation
public class GetCustomEmailParameters : IHook<GetCustomEmailParametersHookRequest, GetCustomEmailParametersHookResponse>
{
public GetCustomEmailParameters() { }
public GetCustomEmailParametersHookResponse Invoke(GetCustomEmailParametersHookRequest request, Func<GetCustomEmailParametersHookRequest, GetCustomEmailParametersHookResponse> func)
{
return func(request);
}
}
Register Hook
services.AddTransient<IHook<GetCustomEmailParametersHookRequest, GetCustomEmailParametersHookResponse>, GetCustomEmailParameters>();
Request Model
{
"TemplateName": "string"
}
Response Model
{
"ParameterNames": null
}
GetCustomEmailTemplateNames
Basic Implementation
public class GetCustomEmailTemplateNames : IHook<GetCustomEmailTemplateNamesHookRequest, GetCustomEmailTemplateNamesHookResponse>
{
public GetCustomEmailTemplateNames() { }
public GetCustomEmailTemplateNamesHookResponse Invoke(GetCustomEmailTemplateNamesHookRequest request, Func<GetCustomEmailTemplateNamesHookRequest, GetCustomEmailTemplateNamesHookResponse> func)
{
return func(request);
}
}
Register Hook
services.AddTransient<IHook<GetCustomEmailTemplateNamesHookRequest, GetCustomEmailTemplateNamesHookResponse>, GetCustomEmailTemplateNames>();
Request Model
{}
Response Model
{
"TemplateNames": null
}
GetEmailData
Basic Implementation
public class GetEmailData : IHook<GetEmailDataHookRequest, GetEmailDataHookResponse>
{
public GetEmailData() { }
public GetEmailDataHookResponse Invoke(GetEmailDataHookRequest request, Func<GetEmailDataHookRequest, GetEmailDataHookResponse> func)
{
return func(request);
}
}
Register Hook
services.AddTransient<IHook<GetEmailDataHookRequest, GetEmailDataHookResponse>, GetEmailData>();
Request Model
{
"TemplateName": "string",
"DataParameters": null
}
Response Model
{
"DataMap": null
}
GetEmailPlaceholders
Basic Implementation
public class GetEmailPlaceholders : IHook<GetEmailPlaceholdersHookRequest, GetEmailPlaceholdersHookResponse>
{
public GetEmailPlaceholders() { }
public GetEmailPlaceholdersHookResponse Invoke(GetEmailPlaceholdersHookRequest request, Func<GetEmailPlaceholdersHookRequest, GetEmailPlaceholdersHookResponse> func)
{
return func(request);
}
}
Register Hook
services.AddTransient<IHook<GetEmailPlaceholdersHookRequest, GetEmailPlaceholdersHookResponse>, GetEmailPlaceholders>();
Request Model
{
"TemplateName": "string"
}
Response Model
{
"Placeholders": null
}
Comments
Please sign in to leave a comment.