Пример #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);
 }