示例#1
0
        /// <summary>Sends in a new thread if isThreaded, otherwise in current thread </summary>
        private void  sendAppResponse(NuGenTransportable theResponse)
        {
            NuGenProcessorImpl processor = this;
            IThreadRunnable    sender    = new AnonymousClassRunnable(processor, theResponse, this);

            if (myThreaded)
            {
                SupportClass.ThreadClass thd = new SupportClass.ThreadClass(new System.Threading.ThreadStart(sender.Run));
                thd.Start();
            }
            else
            {
                sender.Run();
            }
        }
示例#2
0
 public ExpiringTransportable(NuGenProcessorImpl enclosingInstance, NuGenTransportable theTransportable, long theExpiryTime)
 {
     InitBlock(enclosingInstance);
     transportable = theTransportable;
     expiryTime    = theExpiryTime;
 }
示例#3
0
 private void  InitBlock(NuGenProcessorImpl enclosingInstance)
 {
     this.enclosingInstance = enclosingInstance;
 }
示例#4
0
 private void  InitBlock(Genetibase.NuGenHL7.protocol.impl.NuGenProcessorImpl processor, Genetibase.NuGenHL7.protocol.NuGenTransportable theResponse, NuGenProcessorImpl enclosingInstance)
 {
     this.processor         = processor;
     this.theResponse       = theResponse;
     this.enclosingInstance = enclosingInstance;
 }
示例#5
0
 public AnonymousClassRunnable(Genetibase.NuGenHL7.protocol.impl.NuGenProcessorImpl processor, Genetibase.NuGenHL7.protocol.NuGenTransportable theResponse, NuGenProcessorImpl enclosingInstance)
 {
     InitBlock(processor, theResponse, enclosingInstance);
 }