コード例 #1
0
        private static bool UpdateDependentProperties(ICorePropertyBag propertyBag, byte[] oscContactSources, OscNetworkProperties networkProperties)
        {
            bool flag = false;

            flag |= OscContactSourcesForContactUpdateRule.UpdatePartnerNetworkIdAndUserId(propertyBag, oscContactSources, networkProperties);
            return(flag | OscContactSourcesForContactUpdateRule.CopyCloudIdFromOscContactSourcesIfCurrentCloudIdIsBlank(propertyBag, networkProperties));
        }
コード例 #2
0
 public bool UpdatePartnerNetworkProperties(ICorePropertyBag propertyBag)
 {
     if (!propertyBag.IsPropertyDirty(ContactSchema.OscContactSourcesForContact))
     {
         return(false);
     }
     byte[] valueOrDefault = propertyBag.GetValueOrDefault <byte[]>(ContactSchema.OscContactSourcesForContact, null);
     if (valueOrDefault == null || valueOrDefault.Length == 0)
     {
         return(OscContactSourcesForContactUpdateRule.UpdateDependentProperties(propertyBag, null, null));
     }
     try
     {
         return(OscContactSourcesForContactUpdateRule.UpdateDependentProperties(propertyBag, valueOrDefault, this.oscParser.ReadOscContactSource(valueOrDefault)));
     }
     catch (OscContactSourcesForContactParseException arg)
     {
         OscContactSourcesForContactUpdateRule.Tracer.TraceError <OscContactSourcesForContactParseException>((long)this.GetHashCode(), "Encountered exception when parsing: {0}", arg);
     }
     return(false);
 }