예제 #1
0
        public CodeNamespace Build(HangfireQueueInterface eventStore)
        {
            var codeNamespace       = _nameSpaceBuilderUtil.WithName(_nameSpace).WithDomain().WithTask().WithList().Build();
            var codeTypeDeclaration = _interfaceBuilderUtil.Build(eventStore);

            codeNamespace.Types.Add(codeTypeDeclaration);
            return(codeNamespace);
        }
예제 #2
0
        public CodeNamespace Build(EventStoreRepositoryInterface hookClass)
        {
            var targetClass = _interfaceBuilderUtil.Build(hookClass);
            var nameSpace   = _nameSpaceBuilderUtil.WithName(_nameSpace).WithDomain().WithTask().WithList().Build();

            nameSpace.Types.Add(targetClass);
            return(nameSpace);
        }
예제 #3
0
        public CodeNamespace Build(QueueRepositoryInterface repo)
        {
            var codeNamespace       = _nameSpaceBuilderUtil.WithName(_nameSpace).WithDomain().WithTask().WithList().Build();
            var codeTypeDeclaration = _interfaceBuilderUtil.Build(repo);

            codeNamespace.Types.Add(codeTypeDeclaration);
            return(codeNamespace);
        }
예제 #4
0
        public CodeNamespace Build(DomainHookBaseClass hookClass)
        {
            var targetClass = _interfaceBuilderUtil.Build(hookClass);
            var nameSpace   = _nameSpaceBuilderUtil.WithName(_nameSpace).WithDomain().WithTask().Build();

            _propertyBuilderUtil.BuildForInterface(targetClass, hookClass.Properties);
            nameSpace.Types.Add(targetClass);
            return(nameSpace);
        }