public VisualStudioCodeGenerator(IVisualStudioWriter visualStudioWriter, IPartialCodeGenerator codeGenerator, ICodeGeneratorContextFactory codeGeneratorContextFactory, IVisualStudioEventProxy visualStudioEventProxy) { _visualStudioWriter = visualStudioWriter; _codeGenerator = codeGenerator; _codeGeneratorContextFactory = codeGeneratorContextFactory; _visualStudioEventProxy = visualStudioEventProxy; }
public VisualStudioCodeGenerator(IVisualStudioWriter visualStudioWriter, IPartialCodeGenerator codeGenerator, ICodeGeneratorContextFactory codeGeneratorContextFactory, IVisualStudioEventProxy visualStudioEventProxy) { _visualStudioWriter = visualStudioWriter; _codeGenerator = codeGenerator; _codeGeneratorContextFactory = codeGeneratorContextFactory; _visualStudioEventProxy = visualStudioEventProxy; }
public pMixinsOnBuildCodeGenerator(IVisualStudioEventProxy visualStudioEventProxy, IVisualStudioCodeGenerator visualStudioCodeGenerator, ICodeGeneratorContextFactory codeGeneratorContextFactory, IpMixinsCodeGeneratorResponseFileWriter responseFileWriter) { _visualStudioCodeGenerator = visualStudioCodeGenerator; _codeGeneratorContextFactory = codeGeneratorContextFactory; _responseFileWriter = responseFileWriter; visualStudioEventProxy.OnBuildBegin += HandleBuild; }
public pMixinsOnBuildCodeGenerator(IVisualStudioEventProxy visualStudioEventProxy, IVisualStudioCodeGenerator visualStudioCodeGenerator, ICodeGeneratorContextFactory codeGeneratorContextFactory, IpMixinsCodeGeneratorResponseFileWriter responseFileWriter) { _visualStudioCodeGenerator = visualStudioCodeGenerator; _codeGeneratorContextFactory = codeGeneratorContextFactory; _responseFileWriter = responseFileWriter; visualStudioEventProxy.OnBuildBegin += HandleBuild; }
public pMixinsOnSolutionOpenCodeGenerator(IVisualStudioEventProxy visualStudioEventProxy, ICodeGeneratorContextFactory codeGeneratorContextFactory, IpMixinsCodeGeneratorResponseFileWriter responseFileWriter, ITaskFactory taskFactory, IVisualStudioCodeGenerator visualStudioCodeGenerator) { _codeGeneratorContextFactory = codeGeneratorContextFactory; _responseFileWriter = responseFileWriter; _taskFactory = taskFactory; _visualStudioCodeGenerator = visualStudioCodeGenerator; visualStudioEventProxy.OnSolutionOpening += (s, a) => WarmUpCodeGeneratorDependencyManager(); visualStudioEventProxy.OnSolutionClosing += (s, a) => OnSolutionOpeningTask = null; }
public pMixinsOnSolutionOpenCodeGenerator(IVisualStudioEventProxy visualStudioEventProxy, ICodeGeneratorContextFactory codeGeneratorContextFactory, IpMixinsCodeGeneratorResponseFileWriter responseFileWriter, ITaskFactory taskFactory, IVisualStudioCodeGenerator visualStudioCodeGenerator) { _codeGeneratorContextFactory = codeGeneratorContextFactory; _responseFileWriter = responseFileWriter; _taskFactory = taskFactory; _visualStudioCodeGenerator = visualStudioCodeGenerator; visualStudioEventProxy.OnSolutionOpening += (s, a) => WarmUpCodeGeneratorDependencyManager(); visualStudioEventProxy.OnSolutionClosing += (s, a) => OnSolutionOpeningTask = null; }
public pMixinsOnItemSaveCodeGenerator(IVisualStudioEventProxy visualStudioEventProxy, IVisualStudioCodeGenerator visualStudioCodeGenerator, ICodeGeneratorContextFactory codeGeneratorContextFactory, IpMixinsCodeGeneratorResponseFileWriter responseFileWriter, ITaskFactory taskFactory, ICodeGeneratorDependencyManager codeGeneratorDependencyManager) { _visualStudioCodeGenerator = visualStudioCodeGenerator; _codeGeneratorContextFactory = codeGeneratorContextFactory; _responseFileWriter = responseFileWriter; _taskFactory = taskFactory; _codeGeneratorDependencyManager = codeGeneratorDependencyManager; visualStudioEventProxy.OnProjectItemSaveComplete += (s, a) => GenerateCode(a.ClassFullPath, "ProjectItemSaveComplete"); //Generate code on a Project Item Added incase it's an existing file. visualStudioEventProxy.OnProjectItemAdded += (s, a) => GenerateCode(a.ClassFullPath, "OnProjectItemAdded"); }