コード例 #1
0
        public StatementBuilder(string basePath, string imagePath)
        {
            resolver = new DirectoryTemplateResolver(basePath);
            ImagesPath = imagePath;
            TemplateService = new TemplateService(new TemplateServiceConfiguration {
                Resolver = resolver,
                Namespaces = new HashSet<string> {
                    "System",
                    "System.Collections.Generic",
                    "System.Linq",

                    //Any namespaces added here should be mirrored in Config\Email Templates\Web.config for design-time support
                    "ShomreiTorah.Common",
                    "ShomreiTorah.Statements",
                    "ShomreiTorah.Statements.Email",
                }
            });
        }
コード例 #2
0
        public StatementBuilder(string basePath, string imagePath)
        {
            resolver        = new DirectoryTemplateResolver(basePath);
            ImagesPath      = imagePath;
            TemplateService = new TemplateService(new TemplateServiceConfiguration {
                Resolver = resolver,
#if DEBUG
                Debug = true,
#endif
                Namespaces = new HashSet <string> {
                    "System",
                    "System.Collections.Generic",
                    "System.Linq",

                    //Any namespaces added here should be mirrored in Config\Email Templates\Web.config for design-time support
                    "ShomreiTorah.Common",
                    "ShomreiTorah.Statements",
                    "ShomreiTorah.Statements.Email",
                }
            });
        }