Example #1
0
        public Mother(int rawStartIndex, string rawValue, Basics.ControlResult.Message messageResult, string updateBlockControlID) :
            base(rawStartIndex, rawValue, ControllerTypes.Mother, null)
        {
            this._Pool         = new ControllerPool();
            this.Scheduler     = new ControllerSchedule(ref this._Pool);
            this.MessageResult = messageResult;
            this.ProcessingUpdateBlockControlID = updateBlockControlID;

            base.Mother = this;
        }
Example #2
0
            public string Start(string xeoraContent, Basics.ControlResult.Message messageResult, string updateBlockControlID = null)
            {
                if (this._Instance == null)
                {
                    throw new System.Exception("Injection required!");
                }

                Mother ExternalController =
                    new Mother(0, xeoraContent, messageResult, updateBlockControlID);

                ExternalController.ParseRequested += this.OnParseRequest;
                ExternalController.Setup();

                ExternalController.Render(null);

                return(ExternalController.RenderedValue);
            }
Example #3
0
        public Mother(
            Single singleDirective,
            Basics.ControlResult.Message messageResult,
            IReadOnlyCollection <string> updateBlockIdList
            )
        {
            this.PropertyLock = new object();

            this.Pool = new DirectivePool();

            this.MessageResult           = messageResult;
            this.RequestedUpdateBlockIds =
                new List <string>();
            if (updateBlockIdList != null && updateBlockIdList.Count > 0)
            {
                this.RequestedUpdateBlockIds.AddRange(updateBlockIdList);
            }

            this._SingleDirective        = singleDirective;
            this._SingleDirective.Mother = this;

            this.AnalysisBulk = new ConcurrentDictionary <DirectiveTypes, Tuple <int, double> >();
        }
Example #4
0
 public string Start(Basics.ServiceDefinition serviceDefinition, Basics.ControlResult.Message messageResult, string updateBlockControlID = null) =>
 this.Start(string.Format("$T:{0}$", serviceDefinition.FullPath), messageResult, updateBlockControlID);
Example #5
0
 public string Render(string xeoraContent, Basics.ControlResult.Message messageResult, string updateBlockControlID = null) =>
 this._Renderer.Start(xeoraContent, messageResult, updateBlockControlID);
Example #6
0
 public string Render(Basics.ServiceDefinition serviceDefinition, Basics.ControlResult.Message messageResult, string updateBlockControlID = null) =>
 this._Renderer.Start(serviceDefinition, messageResult, updateBlockControlID);