Ejemplo n.º 1
0
 private RenderTreeFrame(int sequence, int regionSubtreeLength)
     : this()
 {
     Sequence            = sequence;
     FrameType           = RenderTreeFrameType.Region;
     RegionSubtreeLength = regionSubtreeLength;
 }
Ejemplo n.º 2
0
 private RenderTreeFrame(int sequence, string textContent)
     : this()
 {
     FrameType   = RenderTreeFrameType.Text;
     Sequence    = sequence;
     TextContent = textContent;
 }
Ejemplo n.º 3
0
 // If we need further constructors whose signatures clash with the patterns above,
 // we can add extra args to this general-purpose one.
 private RenderTreeFrame(int sequence, RenderTreeFrameType frameType, string markupContent)
     : this()
 {
     FrameType     = frameType;
     Sequence      = sequence;
     MarkupContent = markupContent;
 }
Ejemplo n.º 4
0
 private RenderTreeFrame(int sequence, Action <object> componentReferenceCaptureAction, int parentFrameIndex)
     : this()
 {
     FrameType = RenderTreeFrameType.ComponentReferenceCapture;
     Sequence  = sequence;
     ComponentReferenceCaptureAction           = componentReferenceCaptureAction;
     ComponentReferenceCaptureParentFrameIndex = parentFrameIndex;
 }
Ejemplo n.º 5
0
 private RenderTreeFrame(int sequence, Action <ElementReference> elementReferenceCaptureAction, string elementReferenceCaptureId)
     : this()
 {
     FrameType = RenderTreeFrameType.ElementReferenceCapture;
     Sequence  = sequence;
     ElementReferenceCaptureAction = elementReferenceCaptureAction;
     ElementReferenceCaptureId     = elementReferenceCaptureId;
 }
Ejemplo n.º 6
0
 private RenderTreeFrame(int sequence, string attributeName, object attributeValue)
     : this()
 {
     FrameType      = RenderTreeFrameType.Attribute;
     Sequence       = sequence;
     AttributeName  = attributeName;
     AttributeValue = attributeValue;
 }
Ejemplo n.º 7
0
 private RenderTreeFrame(int sequence, Type componentType, int componentSubtreeLength)
     : this()
 {
     FrameType              = RenderTreeFrameType.Component;
     Sequence               = sequence;
     ComponentType          = componentType;
     ComponentSubtreeLength = componentSubtreeLength;
 }
Ejemplo n.º 8
0
 private RenderTreeFrame(int sequence, string elementName, int elementSubtreeLength)
     : this()
 {
     FrameType            = RenderTreeFrameType.Element;
     Sequence             = sequence;
     ElementName          = elementName;
     ElementSubtreeLength = elementSubtreeLength;
 }
Ejemplo n.º 9
0
 private RenderTreeFrame(int sequence, int elementSubtreeLength, string elementName, object elementKey)
     : this()
 {
     Sequence             = sequence;
     FrameType            = RenderTreeFrameType.Element;
     ElementSubtreeLength = elementSubtreeLength;
     ElementName          = elementName;
     ElementKey           = elementKey;
 }
Ejemplo n.º 10
0
 private RenderTreeFrame(int sequence, string attributeName, object attributeValue, int eventHandlerId)
     : this()
 {
     FrameType               = RenderTreeFrameType.Attribute;
     Sequence                = sequence;
     AttributeName           = attributeName;
     AttributeValue          = attributeValue;
     AttributeEventHandlerId = eventHandlerId;
 }
Ejemplo n.º 11
0
 private RenderTreeFrame(int sequence, string attributeName, object attributeValue, ulong attributeEventHandlerId, string attributeEventUpdatesAttributeName)
     : this()
 {
     FrameType                          = RenderTreeFrameType.Attribute;
     Sequence                           = sequence;
     AttributeName                      = attributeName;
     AttributeValue                     = attributeValue;
     AttributeEventHandlerId            = attributeEventHandlerId;
     AttributeEventUpdatesAttributeName = attributeEventUpdatesAttributeName;
 }
Ejemplo n.º 12
0
 private RenderTreeFrame(int sequence, bool isMarkup, string textOrMarkup)
     : this()
 {
     Sequence = sequence;
     if (isMarkup)
     {
         FrameType     = RenderTreeFrameType.Markup;
         MarkupContent = textOrMarkup;
     }
     else
     {
         FrameType   = RenderTreeFrameType.Text;
         TextContent = textOrMarkup;
     }
 }
Ejemplo n.º 13
0
        private RenderTreeFrame(int sequence, int componentSubtreeLength, Type componentType, ComponentState componentState, object componentKey)
            : this()
        {
            Sequence  = sequence;
            FrameType = RenderTreeFrameType.Component;
            ComponentSubtreeLength = componentSubtreeLength;
            ComponentType          = componentType;
            ComponentKey           = componentKey;

            if (componentState != null)
            {
                ComponentState = componentState;
                ComponentId    = componentState.ComponentId;
            }
        }
Ejemplo n.º 14
0
    private RenderTreeFrame(int sequence, int componentSubtreeLength, [DynamicallyAccessedMembers(LinkerFlags.Component)] Type componentType, ComponentState componentState, object componentKey)
        : this()
    {
        SequenceField  = sequence;
        FrameTypeField = RenderTreeFrameType.Component;
        ComponentSubtreeLengthField = componentSubtreeLength;
        ComponentTypeField          = componentType;
        ComponentKeyField           = componentKey;

        if (componentState != null)
        {
            ComponentStateField = componentState;
            ComponentIdField    = componentState.ComponentId;
        }
    }