Exemplo n.º 1
0
 private void SafeAddScaleDescriptorAssignment(DynamicMemberDescriptor m)
 {
     using (_log.PushContext("SafeAddScaleDescriptorAssignment"))
     {
         IScaleDescriptor sd = m.ScaleDescriptor;
         if (null == sd)
         {
             _log.DebugFormat("getting/creating scale descriptor for {0}", m.MemberInfo.Name);
             GetOrCreateScaleAssignment(m.MemberInfo.Name, m.MemberInfo);
         }
         else
         {
             _log.DebugFormat("adding scale descriptor assignment for {0} to {1}", m.MemberInfo.Name,
                              m.ScaleDescriptor.Name);
             Scales.Add(new ScaleDescriptorAssignment
             {
                 PropertyName = m.MemberInfo.Name, Scale = m.ScaleDescriptor
             });
         }
     }
 }
Exemplo n.º 2
0
 private void SafeAddScaleDescriptorAssignment(DynamicMemberDescriptor m)
 {
     using (_log.PushContext("SafeAddScaleDescriptorAssignment"))
     {
         IScaleDescriptor sd = m.ScaleDescriptor;
         if (null == sd)
         {
             _log.DebugFormat("getting/creating scale descriptor for {0}", m.MemberInfo.Name);
             GetOrCreateScaleAssignment(m.MemberInfo.Name, m.MemberInfo);
         }
         else
         {
             _log.DebugFormat("adding scale descriptor assignment for {0} to {1}", m.MemberInfo.Name,
                              m.ScaleDescriptor.Name);
             Scales.Add(new ScaleDescriptorAssignment
                            {PropertyName = m.MemberInfo.Name, Scale = m.ScaleDescriptor});
         }
     }
 }