32 lines
		
	
	
		
			821 B
		
	
	
	
		
			C#
		
	
	
	
		
		
			
		
	
	
			32 lines
		
	
	
		
			821 B
		
	
	
	
		
			C#
		
	
	
	
|  | using System; | |||
|  | using System.Collections.Generic; | |||
|  | using System.Linq; | |||
|  | using System.ServiceModel; | |||
|  | using System.Web; | |||
|  | 
 | |||
|  | namespace DeiNiu.Wcf  | |||
|  | { | |||
|  |     [MessageContract] | |||
|  |     public class RemoteFileInfo : IDisposable | |||
|  |     { | |||
|  |         [MessageHeader(MustUnderstand = true)] | |||
|  |         public string FileName; | |||
|  |         [MessageHeader(MustUnderstand = true)] | |||
|  |         public string preNo; | |||
|  |         [MessageHeader(MustUnderstand = true)] | |||
|  |         public int purch_d_id; | |||
|  |         [MessageHeader(MustUnderstand = true)] | |||
|  |         public string description; | |||
|  |         [MessageBodyMember(Order = 1)] | |||
|  |         public System.IO.Stream FileByteStream; | |||
|  | 
 | |||
|  |         public void Dispose() | |||
|  |         { | |||
|  |             if (FileByteStream != null) | |||
|  |             { | |||
|  |                 FileByteStream.Close(); | |||
|  |                 FileByteStream = null; | |||
|  |             } | |||
|  |         } | |||
|  |     } | |||
|  | } |