示例#1
0
		public ExecuteOptions(ExecuteOptions rhs)
		{
			this.extraInfoValue = rhs.extraInfoValue;
			this.standardInputValue = rhs.standardInputValue;
			this.captureOutputValue = rhs.captureOutputValue;
			this.captureErrorValue = rhs.captureErrorValue;
		}		
示例#2
0
 public ExecuteOptions(ExecuteOptions rhs)
 {
     this.extraInfoValue     = rhs.extraInfoValue;
     this.standardInputValue = rhs.standardInputValue;
     this.captureOutputValue = rhs.captureOutputValue;
     this.captureErrorValue  = rhs.captureErrorValue;
 }
示例#3
0
		// checkpoint byps.gen.cs.GenRemoteStub:133
		public async Task ExecuteNotifyExitAsync(String[] args, ExecuteOptions opts){
			BRequest_FileSystemService_executeNotifyExit req = new BRequest_FileSystemService_executeNotifyExit();			
			req.argsValue = args;
			req.optsValue = opts;
			Task<Object> task = Task<Object>.Factory.FromAsync(transport.BeginSend<Object>, transport.EndSend<Object>, req, null);
			await task;
		}
        public virtual void ExecuteNotifyExit(String[] args, ExecuteOptions opts)
        {
            BSyncResult <Object> asyncResult = new BSyncResult <Object>();

            ExecuteNotifyExit(args, opts, BAsyncResultHelper.ToDelegate <Object>(asyncResult));
            asyncResult.GetResult();
        }
        public virtual void ExecuteNotifyExit(String[] args, ExecuteOptions opts, BAsyncResult <Object> asyncResult)
        {
            BRequest_FileSystemService_executeNotifyExit req = new BRequest_FileSystemService_executeNotifyExit();

            req.argsValue = args;
            req.optsValue = opts;
            transport.sendMethod(req, asyncResult);
        }
        // checkpoint byps.gen.cs.GenRemoteStub:133
        public async Task ExecuteNotifyExitAsync(String[] args, ExecuteOptions opts)
        {
            BRequest_FileSystemService_executeNotifyExit req = new BRequest_FileSystemService_executeNotifyExit();

            req.argsValue = args;
            req.optsValue = opts;
            Task <Object> task = Task <Object> .Factory.FromAsync(transport.BeginSend <Object>, transport.EndSend <Object>, req, null);

            await task;
        }
示例#7
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            ExecuteOptions obj  = (ExecuteOptions)obj1;
            BOutputBin     bout = (BOutputBin)bout1;
            BBufferBin     bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putBoolean(obj.CaptureError);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putBoolean(obj.CaptureOutput);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putString(obj.ExtraInfo);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putString(obj.StandardInput);
        }
示例#8
0
        public override Object read(Object obj1, BInput bin1, long version)
        {
            BInputBin      bin = (BInputBin)bin1;
            ExecuteOptions obj = (ExecuteOptions)(obj1 != null ? obj1 : bin.onObjectCreated(new ExecuteOptions()));

            BBufferBin bbuf = bin.bbuf;

            // checkpoint byps.gen.cs.PrintContext:449
            obj.CaptureError = bbuf.getBoolean();
            // checkpoint byps.gen.cs.PrintContext:449
            obj.CaptureOutput = bbuf.getBoolean();
            // checkpoint byps.gen.cs.PrintContext:449
            obj.ExtraInfo = bbuf.getString();
            // checkpoint byps.gen.cs.PrintContext:449
            obj.StandardInput = bbuf.getString();

            return(obj);
        }
		/// <summary>
		/// Execute a program.
		/// </summary>
		/// <remarks>
		/// If opts is null, the process is started synchronously. Otherwise it is started in background and
		/// the JSFS Agent will notify the caller via the {@link FileSystemNotify#notify(NotifyInfo)} function
		/// when the process has terminated.
		/// The first element in args[] is assumed to be the application name to be started. If only
		/// {@link ExecuteOptions#extraInfo} is set in opts, the first element in args can also be a
		/// file name. In this case the file is opened via ShellExecute with verb "open".
		/// </remarks>
		public virtual Task ExecuteNotifyExitAsync(String[] args, ExecuteOptions opts){
			return BTaskConstants<Object>.NotImplemented;
		}
		public virtual async void ExecuteNotifyExit(String[] args, ExecuteOptions opts, BAsyncResult<Object> asyncResult) {
			Object __byps__ret = default(Object);
			Exception __byps__ex = null;
			bool __byps__callAsync = false;
			try {
				ExecuteNotifyExit(args, opts);
			}
			catch (NotImplementedException) { __byps__callAsync = true; }
			catch (Exception e) { __byps__ex = e; }
			if (__byps__callAsync) try {
				await ExecuteNotifyExitAsync(args, opts);
			}
			catch (NotImplementedException) { __byps__ex = new BException(BExceptionC.UNSUPPORTED_METHOD, ""); }
			catch (Exception e) { __byps__ex = e; }
			asyncResult(__byps__ret, __byps__ex);
		}
		public virtual void ExecuteNotifyExit(String[] args, ExecuteOptions opts) {
			throw new NotImplementedException();
		}
示例#12
0
		public virtual void ExecuteNotifyExit(String[] args, ExecuteOptions opts, BAsyncResult<Object> asyncResult) {
			BRequest_FileSystemService_executeNotifyExit req = new BRequest_FileSystemService_executeNotifyExit();			
			req.argsValue = args;
			req.optsValue = opts;
			transport.sendMethod(req, asyncResult);
		}
示例#13
0
		public virtual void ExecuteNotifyExit(String[] args, ExecuteOptions opts) {
			BSyncResult<Object> asyncResult = new BSyncResult<Object>();			
			ExecuteNotifyExit(args, opts, BAsyncResultHelper.ToDelegate<Object>(asyncResult));
			asyncResult.GetResult();			
		}