示例#1
0
        public void AttachApplication()
        {
            MonoDevelop.Core.Execution.RemotingService.RegisterRemotingChannel();

            string sref = File.ReadAllText(AutoTestService.SessionReferenceFile);

            byte[]          data = Convert.FromBase64String(sref);
            MemoryStream    ms   = new MemoryStream(data);
            BinaryFormatter bf   = new BinaryFormatter();

            service = (IAutoTestService)bf.Deserialize(ms);
            session = service.AttachClient(this);
        }
		public void AttachApplication ()
		{
			AutoTestService.SetupRemoting ();

			string sref = File.ReadAllText (AutoTestService.SessionReferenceFile);
			byte[] data = Convert.FromBase64String (sref);
			MemoryStream ms = new MemoryStream (data);
			BinaryFormatter bf = new BinaryFormatter ();
			service = (IAutoTestService) bf.Deserialize (ms);
			session = service.AttachClient (this);
		}
示例#3
0
        public async Task <ActionResult <string> > AutoTestViaHttp([FromServices] IAutoTestService autoTestService)
        {
            var result = await autoTestService.ServiceCallAsync();

            return(result);
        }