Exemple #1
0
 public FCgManager_Process() : base()
 {
     for (int i = 0; i < PAYLOAD_COUNT; ++i)
     {
         Payloads.Add(new FCgProcessPayload());
     }
 }
        /// <summary>
        /// Parse child tag
        /// </summary>
        protected override ITlvTag ParseChild(ITlvTag childTag)
        {
            switch (childTag.Type)
            {
            case Constants.AggregationRequestPayload.TagType:
                AggregationRequestPayload aggregationRequestPayload = childTag as AggregationRequestPayload ?? new AggregationRequestPayload(childTag);
                Payloads.Add(aggregationRequestPayload);
                return(aggregationRequestPayload);

            case Constants.AggregatorConfigRequestPayload.TagType:
                AggregatorConfigRequestPayload aggregatorConfigRequestPayload = childTag as AggregatorConfigRequestPayload ?? new AggregatorConfigRequestPayload(childTag);
                Payloads.Add(aggregatorConfigRequestPayload);
                return(aggregatorConfigRequestPayload);

            default:
                return(base.ParseChild(childTag));
            }
        }
Exemple #3
0
        /// <summary>
        /// Parse child tag
        /// </summary>
        protected override ITlvTag ParseChild(ITlvTag childTag)
        {
            switch (childTag.Type)
            {
            case Constants.ExtendRequestPayload.TagType:
                ExtendRequestPayload extendRequestPayload = childTag as ExtendRequestPayload ?? new ExtendRequestPayload(childTag);
                Payloads.Add(extendRequestPayload);
                return(extendRequestPayload);

            case Constants.ExtenderConfigRequestPayload.TagType:
                ExtenderConfigRequestPayload configRequestPayload = childTag as ExtenderConfigRequestPayload ?? new ExtenderConfigRequestPayload(childTag);
                Payloads.Add(configRequestPayload);
                return(configRequestPayload);

            default:
                return(base.ParseChild(childTag));
            }
        }
 /// <summary>
 /// Parse child tag
 /// </summary>
 protected override ITlvTag ParseChild(ITlvTag childTag)
 {
     switch (childTag.Type)
     {
         case Constants.AggregationResponsePayload.TagType:
             AggregationResponsePayload aggregationResponsePayload = childTag as AggregationResponsePayload ?? new AggregationResponsePayload(childTag);
             Payloads.Add(aggregationResponsePayload);
             return aggregationResponsePayload;
         case Constants.ErrorPayload.TagType:
             return ErrorPayload = childTag as AggregationErrorPayload ?? new AggregationErrorPayload(childTag);
         case Constants.AggregatorConfigResponsePayload.TagType:
             AggregatorConfigResponsePayload aggregatorConfigResponsePayload = childTag as AggregatorConfigResponsePayload ?? new AggregatorConfigResponsePayload(childTag);
             Payloads.Add(aggregatorConfigResponsePayload);
             return aggregatorConfigResponsePayload;
         // not implemented yet, so just return the tag
         case Constants.AggregationAcknowledgmentResponsePayload.TagType:
             return childTag;
         default:
             return base.ParseChild(childTag);
     }
 }
Exemple #5
0
        } // AddPayload

        public void AddPayload(UiDvbStpClientSegmentInfo payload)
        {
            Payloads.Add(payload);
        } // AddPayload
Exemple #6
0
        } // DumpToFolder
#endif

        public void AddPayload(byte payloadId, short?segmentId, string displayName, Type xmlType)
        {
            Payloads.Add(new UiDvbStpClientSegmentInfo(payloadId, segmentId, displayName, xmlType));
        } // AddPayload
Exemple #7
0
 /// <summary>
 /// Appends a single payload to this SeString.
 /// </summary>
 /// <param name="payload">The payload to append.</param>
 /// <returns>This object.</returns>
 public SeString Append(Payload payload)
 {
     Payloads.Add(payload);
     return(this);
 }
Exemple #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ManagedBootstrapperApplication"/> class.
 /// </summary>
 /// <param name="appAssembly">The application assembly.</param>
 /// <param name="dependencies">The dependencies.</param>
 public ManagedBootstrapperApplication(string appAssembly, params string[] dependencies)
 {
     AppAssembly = appAssembly;
     Payloads    = Payloads.Add(AppAssembly.ToPayload())
                   .AddRange(dependencies);
 }