public virtual void ReadAllText(String path, BAsyncResult <String> asyncResult)
        {
            BRequest_FileSystemService_readAllText req = new BRequest_FileSystemService_readAllText();

            req.pathValue = path;
            transport.sendMethod(req, asyncResult);
        }
        // checkpoint byps.gen.cs.GenRemoteStub:133
        public async Task <String> ReadAllTextAsync(String path)
        {
            BRequest_FileSystemService_readAllText req = new BRequest_FileSystemService_readAllText();

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

            return(await task);
        }
Exemple #3
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BRequest_FileSystemService_readAllText obj = (BRequest_FileSystemService_readAllText)obj1;
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putString(obj.pathValue);
        }
Exemple #4
0
        public override Object read(Object obj1, BInput bin1, long version)
        {
            BInputBin bin = (BInputBin)bin1;
            BRequest_FileSystemService_readAllText obj = (BRequest_FileSystemService_readAllText)(obj1 != null ? obj1 : bin.onObjectCreated(new BRequest_FileSystemService_readAllText()));

            BBufferBin bbuf = bin.bbuf;

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

            return(obj);
        }
		// checkpoint byps.gen.cs.GenRemoteStub:133
		public async Task<String> ReadAllTextAsync(String path){
			BRequest_FileSystemService_readAllText req = new BRequest_FileSystemService_readAllText();			
			req.pathValue = path;
			Task<String> task = Task<String>.Factory.FromAsync(transport.BeginSend<String>, transport.EndSend<String>, req, null);
			return await task;
		}
		public virtual void ReadAllText(String path, BAsyncResult<String> asyncResult) {
			BRequest_FileSystemService_readAllText req = new BRequest_FileSystemService_readAllText();			
			req.pathValue = path;
			transport.sendMethod(req, asyncResult);
		}