public ProxyClient(IClientLink link) : base(link) { HeaderContent.Add(@" _ _ _ _____ _ "); HeaderContent.Add(@"| \ | | _ _ ___ | | ___ __ _ _ __|_ _|___ ___ | |_ "); HeaderContent.Add(@"| \| || | | | / __|| | / _ \ / _` || '__| | | / _ \/ __|| __|"); HeaderContent.Add(@"| |\ || |_| || (__ | || __/| (_| || | _ | || __/\__ \| |_ "); HeaderContent.Add(@"|_| \_| \__,_| \___||_| \___| \__,_||_|(_) |_| \___||___/ \__|"); HeaderContent.Add(@" ____ "); HeaderContent.Add(@"| _ \ _ __ ___ __ __ _ _ "); HeaderContent.Add(@"| |_) || '__|/ _ \\ \/ /| | | | "); HeaderContent.Add(@"| __/ | | | (_) |> < | |_| | "); HeaderContent.Add(@"|_| |_| \___//_/\_\ \__, | "); HeaderContent.Add(@" |___/ "); }
internal WorkerClient(IClientLink link) : base(link) { AppDomain.CurrentDomain.AssemblyResolve += OnAssemblyResolve; HeaderContent.Add(@" _ _ _ _____ _ "); HeaderContent.Add(@"| \ | | _ _ ___ | | ___ __ _ _ __|_ _|___ ___ | |_ "); HeaderContent.Add(@"| \| || | | | / __|| | / _ \ / _` || '__| | | / _ \/ __|| __|"); HeaderContent.Add(@"| |\ || |_| || (__ | || __/| (_| || | _ | || __/\__ \| |_ "); HeaderContent.Add(@"|_| \_| \__,_| \___||_| \___| \__,_||_|(_) |_| \___||___/ \__|"); HeaderContent.Add(@"__ __ _ "); HeaderContent.Add(@"\ \ / /___ _ __ | | __ ___ _ __ "); HeaderContent.Add(@" \ \ /\ / // _ \ | '__|| |/ // _ \| '__| "); HeaderContent.Add(@" \ V V /| (_) || | | <| __/| | "); HeaderContent.Add(@" \_/\_/ \___/ |_| |_|\_\\___||_| "); HeaderContent.Add(@" "); }
/// <summary> /// Creates a new instance of <see cref="Client{TConfiguration}"/>. /// </summary> /// <param name="link">The link object used to communicate with the remote.</param> public Client(IClientLink link) { Throw.If.Object.IsNull(link, nameof(link)); Link = link; RuntimesHelper.TryGetCurrentRuntime(out _currentRuntime); Factory.Instance.Create(out ITestResultEndPoint result); Results = result; Link.StartOutput(); Link.MessageReceived += OnSetupReceived; Link.MessageReceived += OnExecuteReceived; Link.ConnectInput(); Link.ServerConnected += OnServerConnected; Link.WaitForConnection(); }
public void Create(out IClientLink @object, String pipeID) => @object = new ClientLink(pipeID);
public void Create(out IClientLink @object) => Create(out @object, Guid.NewGuid().ToString());
public void Create(out IWorkerClient @object, IClientLink link) => @object = new WorkerClient(link);
public void Create(out IProxyClient @object, IClientLink link) => @object = new ProxyClient(link);