Пример #1
0
        public virtual void ReadFile(String path, BAsyncResult <System.IO.Stream> asyncResult)
        {
            BRequest_FileSystemService_readFile req = new BRequest_FileSystemService_readFile();

            req.pathValue = path;
            transport.sendMethod(req, asyncResult);
        }
Пример #2
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BRequest_FileSystemService_readFile obj = (BRequest_FileSystemService_readFile)obj1;
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putString(obj.pathValue);
        }
Пример #3
0
        // checkpoint byps.gen.cs.GenRemoteStub:133
        public async Task <System.IO.Stream> ReadFileAsync(String path)
        {
            BRequest_FileSystemService_readFile req = new BRequest_FileSystemService_readFile();

            req.pathValue = path;
            Task <System.IO.Stream> task = Task <System.IO.Stream> .Factory.FromAsync(transport.BeginSend <System.IO.Stream>, transport.EndSend <System.IO.Stream>, req, null);

            return(await task);
        }
Пример #4
0
        public override Object read(Object obj1, BInput bin1, long version)
        {
            BInputBin bin = (BInputBin)bin1;
            BRequest_FileSystemService_readFile obj = (BRequest_FileSystemService_readFile)(obj1 != null ? obj1 : bin.onObjectCreated(new BRequest_FileSystemService_readFile()));

            BBufferBin bbuf = bin.bbuf;

            // checkpoint byps.gen.cs.PrintContext:449
            obj.pathValue = bbuf.getString();

            return(obj);
        }
Пример #5
0
		// checkpoint byps.gen.cs.GenRemoteStub:133
		public async Task<System.IO.Stream> ReadFileAsync(String path){
			BRequest_FileSystemService_readFile req = new BRequest_FileSystemService_readFile();			
			req.pathValue = path;
			Task<System.IO.Stream> task = Task<System.IO.Stream>.Factory.FromAsync(transport.BeginSend<System.IO.Stream>, transport.EndSend<System.IO.Stream>, req, null);
			return await task;
		}
Пример #6
0
		public virtual void ReadFile(String path, BAsyncResult<System.IO.Stream> asyncResult) {
			BRequest_FileSystemService_readFile req = new BRequest_FileSystemService_readFile();			
			req.pathValue = path;
			transport.sendMethod(req, asyncResult);
		}