<?xml version="1.0" encoding="utf-8" ?>
<Pipeline Signature="010000000160B0550CA4D257AF5F8D8BF1C65A5836E66376F3F3C06338CE31FA917E7EEF068DBADCDD801E78B97E814F177B9BD97B7BC017747CD1C58A9BA373B6B747211FCF5E585A7C403B2EC265D984CB21B5C82BBF3FFAA566FD9BADDA54E6E0FFE8C9FF1FCAA7623BC0595FE586AA1B17BBEF2DCDE8F2DC22C1F74F3F6438A1EC387FC7CEF129814095B6E67CF02A7C638CCDDC79DEC0178DFE88B0B2AC49329BAD158F8D6D1C1F79A36CDF49D320D43BB80585233DB15D86AA0DB96C4519484A73EAB21B9819F65A7FA7BFB8FDC14E3ADC702B25BA2F82A7DD04C435C92140AAC19A2F6D4DD0C7424222F227992FD42ED0A61EBD7B2C2FFFC9AB65920DB84B92314E">
	<InputAdd Name="CommandApplication" />
	<OutputAdd Name="CommandApplication" />
	
	<LibraryAdd Name="Group"			Library="PipelineGroupV4_3.dll"			Assembly="Manison.MTMS.Pipeline.Group" />
	<LibraryAdd Name="ItemPrefixMux"	Library="PipelineItemPrefixMuxV4_1.dll"		Assembly="Manison.MTMS.Pipeline.ItemPrefixMux" />
	<LibraryAdd Name="RecordMemory"		Library="PipelineRecordMemoryV4_3.dll"	Assembly="Manison.MTMS.Pipeline.RecordMemory" />
	<LibraryAdd Name="TCPServerAsync"	Library="PipelineTCPServerAsyncV4_2.dll"	Assembly="Manison.MTMS.Pipeline.TCPServerAsync" />
	<LibraryAdd Name="ValueMux"			Library="PipelineValueMuxV4_5.dll"			Assembly="Manison.MTMS.Pipeline.ValueMux" />	
  	<LibraryAdd Name="RequestCall"		Library="PipelineRequestCallV4_1.dll"			Assembly="Manison.MTMS.Pipeline.RequestCall" />
   	<LibraryAdd Name="TCPServerTunnel"	Library="PipelineTCPServerTunnelV4.dll"		Assembly="Manison.MTMS.Pipeline.TCPServerTunnel" />  	
	<LibraryAdd Name="ValueSet"			Library="PipelineValueSetV4_3.dll"			Assembly="Manison.MTMS.Pipeline.ValueSet" />	
	
	<PipelineAdd Name="ItemMux" Library="ItemPrefixMux" />
	<ItemMux.OutputAdd Name="Control" />
	
	<Connect Source="ItemMux.Output(Control)" Target="Input(Control)" />	
		

	<PipelineAdd Name="TCPServer" Library="TCPServerAsync" />
	<Connect Source="TCPServer.Output(Log)" Target="Output(Log)" />
	<TCPServer.Settings ServerPort="7905" ClientTimeout="5000" CheckTimeouts="True" ThreadPool="2" />
	<Connect Source="TCPServer.Output(Output)" Target="ItemMux.Input(Input)" />		


    <PipelineAdd Name="SetMTMSCommand" Library="ValueSet" />
    <SetMTMSCommand.FieldAdd Name="MTMSCommand"  Type="ItemName" />
    <SetMTMSCommand.FieldAdd Name="ConnectionID"  Type="Long" Value="0" />    
    <SetMTMSCommand.FieldAdd Name="ApplicationID" Type="Rename" ItemValue="ApplicationType" />
	
    <PipelineAdd Name="Call_Engine" Library="RequestCall" />
	<Connect Source="Call_Engine.Output(Call)" Target="SetMTMSCommand.Input(Input)" />
	<Connect Source="Call_Engine.Output(Output)" Target="Output(CommandApplication)" />	




	<PipelineAdd Name="Tunnel" Library="TCPServerTunnel" />
	<Connect Source="Tunnel.Output(Log)" Target="Output(Log)" />
	<Tunnel.Settings ServerPort="7779" ConnectionTimeout="300" ClientTimeout="5000" CheckTimeouts="True" ConnectionKeepAlive="True" ThreadPoolSize="3" NotifyConnectionOpen="False" NotifyConnectionClose="False" DebugMode="False" SendSize="1024"/>
	

	<Connect Source="Tunnel.Output(Output)" Target="Call_Engine.Input(Input)" />
	
	

</Pipeline>

