DeploymentContributorConfigurationStream 클래스

정의

배포 및 빌드 프로세스에서 DacFx에서 사용하는 구성 파일의 스트리밍 가능 버전을 나타냅니다. 이러한 스트림을 통해 배포 확장을 통해 디자인 및 배포 환경을 향상시키고 확장할 수 있습니다.

입력 구성 파일은 MSBuild 프로세스의 일부로 .sqlproj 파일에 정의할 수 있습니다. 파일은 스트림으로 처리되며, 생성된 dacpac에 저장된 출력으로 복사할 수 있는 메서드를 통해 Microsoft.SqlServer.Dac.Deployment.DeploymentContributor.EstablishDeploymentConfiguration(Microsoft.SqlServer.Dac.Deployment.DeploymentContributorConfigurationSetup) 기여자에게 전달됩니다.

그런 다음 이러한 스트림은 배포 중에 구성 및 데이터에 사용할 수 있는 위치에서 사용할 수 있게 Microsoft.SqlServer.Dac.Deployment.DeploymentContributor.ApplyDeploymentConfiguration(Microsoft.SqlServer.Dac.Deployment.DeploymentContributorContext,System.Collections.Generic.ICollection{Microsoft.SqlServer.Dac.Deployment.DeploymentContributorConfigurationStream})됩니다. 메서드의 Microsoft.SqlServer.Dac.Deployment.DeploymentContributor.ApplyDeploymentConfiguration(Microsoft.SqlServer.Dac.Deployment.DeploymentContributorContext,System.Collections.Generic.ICollection{Microsoft.SqlServer.Dac.Deployment.DeploymentContributorConfigurationStream}) 끝에서 모든 스트림이 삭제됩니다. 스트림에서 데이터를 가져와야 하는 참가자는 이 메서드 중에 데이터를 읽고 캐시해야 합니다. 메서드 중에 OnExecute(DeploymentPlanContributorContext) 스트림에서 읽는 시도는 실패합니다.

.sqproj 파일 내에서 배포 구성 파일은 다음과 <같이 지정됩니다. ItemGroup><DeploymentExtensionConfiguration Include="MyContributorName.MyFileName1.sql" /><DeploymentExtensionConfiguration Include="MyContributorName.MyFileName2.sql" /></ItemGroup>

구성 스트림은 모든 참가자가 액세스할 수 있습니다. 참가자는 파일 명명 패턴을 사용하여 해당 기여자와 관련된 입력 파일을 식별할 수 있습니다.

public sealed class DeploymentContributorConfigurationStream
type DeploymentContributorConfigurationStream = class
Public NotInheritable Class DeploymentContributorConfigurationStream
상속
DeploymentContributorConfigurationStream

생성자

Name Description
DeploymentContributorConfigurationStream(String)

의 인스턴스를 만듭니다. DeploymentContributorConfigurationStream

속성

Name Description
Filename

이 스트림을 나타내는 데 사용되는 파일 이름입니다.

메서드

Name Description
GetStream()

을 가져옵니다. Stream

적용 대상