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 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 WorkerMainGenerator(string projectName, StorageInterfaceGenerator storageInterfaceGenerator, MessageBusInterfaceGenerator messageBusInterface, MessageBusHandlerInterfaceGenerator messageBusHandlerInterface) : base(projectName, "", "Program", typeof(WorkerMainTemplate)) { StorageInterface = storageInterfaceGenerator; MessageBusHandlerInterface = messageBusHandlerInterface; MessageBusInterface = messageBusInterface; }