public static void CreateModels(string projectDirectory, string authServerProjectName, IFileSystem fileSystem) { var classPath = ClassPathHelper.AuthServerModelsClassPath(projectDirectory, "ExternalModels.cs", authServerProjectName); var fileText = GetControllerText(classPath.ClassNamespace); Utilities.CreateFile(classPath, fileText, fileSystem); }
public static string GetControllerText(string classNamespace, string projectDirectory, string authServerProjectName) { var modelsClassPath = ClassPathHelper.AuthServerModelsClassPath(projectDirectory, "", authServerProjectName); var viewModelsClassPath = ClassPathHelper.AuthServerViewModelsClassPath(projectDirectory, "", authServerProjectName); var extClassPath = ClassPathHelper.AuthServerExtensionsClassPath(projectDirectory, "Extensions.cs", authServerProjectName); var attrClassPath = ClassPathHelper.AuthServerAttributesClassPath(projectDirectory, "", authServerProjectName); return(@$ "{DuendeDisclosure}// Copyright (c) Duende Software. All rights reserved.
private static string GetVmText(string classNamespace, string projectDirectory, string authServerProjectName) { var modelsClassPath = ClassPathHelper.AuthServerModelsClassPath(projectDirectory, "", authServerProjectName); return(@$ "{DuendeDisclosure}// Copyright (c) Duende Software. All rights reserved.