Пример #1
0
 public CSharpMigrationsGeneratorDependencies(
     [NotNull] ICSharpHelper csharpHelper,
     [NotNull] ICSharpMigrationOperationGenerator csharpMigrationOperationGenerator,
     [NotNull] ICSharpSnapshotGenerator csharpSnapshotGenerator)
 {
     CSharpHelper = csharpHelper;
     CSharpMigrationOperationGenerator = csharpMigrationOperationGenerator;
     CSharpSnapshotGenerator           = csharpSnapshotGenerator;
 }
Пример #2
0
 /// <summary>
 ///     Clones this dependency parameter object with one service replaced.
 /// </summary>
 /// <param name="csharpMigrationOperationGenerator"> A replacement for the current dependency of this type. </param>
 /// <returns> A new parameter object with the given service replaced. </returns>
 public CSharpMigrationsGeneratorDependencies With([NotNull] ICSharpMigrationOperationGenerator csharpMigrationOperationGenerator)
 => new CSharpMigrationsGeneratorDependencies(
     CSharpHelper,
     csharpMigrationOperationGenerator,
     CSharpSnapshotGenerator);