Example #1
0
 public LoadEntitiesFromEntityStorageGenerator(string projectName, QueryGenerator query, StorageInterfaceGenerator storageInterface, OperationInterfaceGenerator operationInterface, LoadEntitiesFromEntityStorage modelParameters, IList <Modelable> storages) : base(projectName, "Operations", modelParameters.Name, typeof(LoadEntitiesFromEntityStorageTemplate), modelParameters, modelParameters.Name)
 {
     Query = query;
     OperationInterface = operationInterface;
     Storage            = storages.Single(x => x.Key.Equals(modelParameters.EntityStorageName));
     StorageInterface   = storageInterface;
 }
Example #2
0
 public ActionControllerGenerator(string projectName, string actionName, IList <ActionGenerator> actions, CustomHttpActivatorGenerator httpActivator, StorageInterfaceGenerator storageInterfaceGenerator, OperationInterfaceGenerator operationInterface) : base(projectName, "Controllers", actions.Single(x => x.Key == actionName).Key + "Controller", typeof(ActionControllerTemplate))
 {
     OperationInterface = operationInterface;
     Action             = actions.Single(x => x.Key == actionName);
     StorageInterface   = storageInterfaceGenerator;
     HttpActivator      = httpActivator;
 }
 public WorkerContainerInstallerGenerator(string projectName, StorageInterfaceGenerator storageInterface, MessageBusInterfaceGenerator messageBusInterface, MessageBusHandlerInterfaceGenerator messageBusHandlerInterface, OperationInterfaceGenerator operationInterface, ActionBaseGenerator actionBase, bool canInitialize = true) : base(projectName, "Utils", "Installer", typeof(WorkerContainerInstallerTemplate), canInitialize)
 {
     ActionBase                 = actionBase;
     StorageInterface           = storageInterface;
     MessageBusInterface        = messageBusInterface;
     MessageBusHandlerInterface = messageBusHandlerInterface;
     OperationInterface         = operationInterface;
 }
        public SequenceOperationGenerator(string projectName, SequenceOperation modelParameters,
                                          OperationInterfaceGenerator operationInterface, IList <Modelable> innerOperations) : base(projectName, "Operations", modelParameters.Name, typeof(SequenceOperationTemplate), modelParameters, modelParameters.Name)
        {
            InnerOperations = innerOperations.Where(x => modelParameters.Operations.Select(y => y.Name).ToList().Contains(x.Key)).ToList();
            Key             = modelParameters.Name;

            OperationInterface = operationInterface;
        }
Example #5
0
 public HandlerGenerator(string projectName, AzureServiceBusQueue azureServiceBusQueue,
                         MessageBusHandlerInterfaceGenerator messageBusHandlerInterface, IList <TriggeredAction> modelParameters, IList <ActionGenerator> actions, OperationInterfaceGenerator operationInterface)
     : base(
         projectName, "Services", azureServiceBusQueue.Name + "Handler", typeof(HandlerTemplate),
         modelParameters, azureServiceBusQueue.Name + "Handler")
 {
     Actions                    = actions.Where(x => modelParameters.Select(y => y.Name).Contains(x.Key)).ToList();
     OperationInterface         = operationInterface;
     AzureServiceBusQueue       = azureServiceBusQueue;
     MessageBusHandlerInterface = messageBusHandlerInterface;
 }
 public AddMessageToQueueGenerator(string projectName, AddMessageToQueue modelParameters, OperationInterfaceGenerator operationInterface, MessageBusInterfaceGenerator messageBusInterface, IList <Modelable> queue) : base(projectName, "Operations", modelParameters.Name, typeof(AddMessageToQueueTemplate), modelParameters, modelParameters.Name)
 {
     Queue = (AzureServiceBusQueueGenerator)queue.Single(x => x.Key.Equals(modelParameters.QueueName));
     MessageBusInterface = messageBusInterface;
     OperationInterface  = operationInterface;
 }
Example #7
0
 public ComputeFactorialGenerator(string projectName, OperationInterfaceGenerator operationInterface, ComputeFactorial modelParameters) : base(projectName, "Operations", modelParameters.Name, typeof(ComputeFactorialTemplate), modelParameters, modelParameters.Name)
 {
     OperationInterface = operationInterface;
     Key = modelParameters.Name;
 }
Example #8
0
 public ActionBaseGenerator(string projectName, OperationInterfaceGenerator operationInterface) : base(projectName, "Actions", "ActionBase", typeof(ActionBaseTemplate))
 {
     OperationInterface = operationInterface;
 }
 public ImageTresholdingGenerator(string projectName, OperationInterfaceGenerator operationInterface, ImageTresholding modelParameters, bool canInitialize = true) : base(projectName, "Operations", modelParameters.Name, typeof(ImageTresholdingTemplate), modelParameters, modelParameters.Name, canInitialize)
 {
     OperationInterface = operationInterface;
 }
 public CallUrlOperationGenerator(string projectName, OperationInterfaceGenerator operationInterface, CallUrlOperation modelParameters, bool canInitialize = true) : base(projectName, "Operations", modelParameters.Name, typeof(CallUrlOperationTemplate), modelParameters, modelParameters.Name, canInitialize)
 {
     OperationInterface = operationInterface;
 }