Esempio n. 1
0
 static GetRecipient()
 {
     GetRecipient.OutputPropertiesToDefinitionDict = PartialPropertiesUtil.GetOutputPropertiesToDefinitionDict(ObjectSchema.GetInstance <ReducedRecipientSchema>(), typeof(ReducedRecipient), new Dictionary <string, string>
     {
         {
             "Identity",
             "Id"
         }
     });
 }
Esempio n. 2
0
        private void InitializePropertiesToRead()
        {
            IList <string>  userSpecifiedProperties = PartialPropertiesUtil.ParseUserSpecifiedProperties(this.Properties);
            LocalizedString value;

            if (!PartialPropertiesUtil.ValidateProperties(userSpecifiedProperties, GetRecipient.OutputPropertiesToDefinitionDict, out value))
            {
                base.ThrowTerminatingError(new ArgumentException(value), ErrorCategory.InvalidArgument, null);
            }
            this.propertiesToRead = PartialPropertiesUtil.CalculatePropertiesToRead(GetRecipient.OutputPropertiesToDefinitionDict, userSpecifiedProperties, GetRecipient.MandatoryOutputProperties, GetRecipient.PropertyRelationship, GetRecipient.SpecialPropertiesLeadToAllRead, base.IsVerboseOn ? new WriteVerboseDelegate(base.WriteVerbose) : null);
        }