C# 클래스 GoogleCloudExtension.SplitTrafficManagement.SplitTrafficViewModel

This class is the view model for the SplitTrafficWindow dialog.
상속: GoogleCloudExtension.Utils.ViewModelBase
파일 보기 프로젝트 열기: GoogleCloudPlatform/google-cloud-visualstudio

공개 메소드들

메소드 설명
SplitTrafficViewModel ( SplitTrafficWindow owner, Service service, IEnumerable versions ) : Google.Apis.Appengine.v1.Data

비공개 메소드들

메소드 설명
GetAllocations ( Service service ) : ObservableCollection

Get a list of traffic allocations of a service's versions as SplitTrafficModel

GetAvailableVersions ( Service service, IEnumerable versions ) : IList

Get a list of versions that are not allocated traffic in a service.

OnAddTrafficAllocationCommand ( ) : void
OnDeleteCommand ( ) : void

Called when the user clicks the Delete button. This will remove the given version (VersionId>) from the list of Allocations and adds the version to the the list of AvailableVersions.

OnSaveCommand ( ) : void

Called when the user clicks the Save button. This handles error checks, populates the Result field and closes the dialog.

UpdateCommands ( ) : void

메소드 상세

SplitTrafficViewModel() 공개 메소드

public SplitTrafficViewModel ( SplitTrafficWindow owner, Service service, IEnumerable versions ) : Google.Apis.Appengine.v1.Data
owner SplitTrafficWindow
service Service
versions IEnumerable
리턴 Google.Apis.Appengine.v1.Data