コード例 #1
0
 public PropertyContainer(Models.ExitConditions protocolObject) : base(BindingState.Bound)
 {
     this.DefaultProperty = this.CreatePropertyAccessor(
         UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.DefaultProperty, o => new ExitOptions(o).Freeze()),
         "Default",
         BindingAccess.Read);
     this.ExitCodeRangesProperty = this.CreatePropertyAccessor(
         ExitCodeRangeMapping.ConvertFromProtocolCollectionAndFreeze(protocolObject.ExitCodeRanges),
         "ExitCodeRanges",
         BindingAccess.Read);
     this.ExitCodesProperty = this.CreatePropertyAccessor(
         ExitCodeMapping.ConvertFromProtocolCollectionAndFreeze(protocolObject.ExitCodes),
         "ExitCodes",
         BindingAccess.Read);
     this.SchedulingErrorProperty = this.CreatePropertyAccessor(
         UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.SchedulingError, o => new ExitOptions(o).Freeze()),
         "SchedulingError",
         BindingAccess.Read);
 }
コード例 #2
0
 public PropertyContainer(Models.ExitConditions protocolObject) : base(BindingState.Bound)
 {
     this.DefaultProperty = this.CreatePropertyAccessor(
         UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.DefaultProperty, o => new ExitOptions(o).Freeze()),
         nameof(Default),
         BindingAccess.Read);
     this.ExitCodeRangesProperty = this.CreatePropertyAccessor(
         ExitCodeRangeMapping.ConvertFromProtocolCollectionAndFreeze(protocolObject.ExitCodeRanges),
         nameof(ExitCodeRanges),
         BindingAccess.Read);
     this.ExitCodesProperty = this.CreatePropertyAccessor(
         ExitCodeMapping.ConvertFromProtocolCollectionAndFreeze(protocolObject.ExitCodes),
         nameof(ExitCodes),
         BindingAccess.Read);
     this.FileUploadErrorProperty = this.CreatePropertyAccessor(
         UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.FileUploadError, o => new ExitOptions(o).Freeze()),
         nameof(FileUploadError),
         BindingAccess.Read);
     this.PreProcessingErrorProperty = this.CreatePropertyAccessor(
         UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.PreProcessingError, o => new ExitOptions(o).Freeze()),
         nameof(PreProcessingError),
         BindingAccess.Read);
 }