Ejemplo n.º 1
0
        internal WorkerRemoteConfiguration(IWorkerRemoteConfiguration original) : base(original)
        {
            Throw.If.Object.IsNull(original, nameof(original));

            Factory.Instance.Copy(out IWorkerClientConfiguration clientConfig, original.ClientConfiguration);
            ClientConfiguration = clientConfig;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Appends <paramref name="data"/> to the <see cref="Payload"/> <see cref="MemoryStream"/>.
        /// </summary>
        /// <param name="data">The data object.</param>
        /// <returns>The current <see cref="IMessage"/>.</returns>
        public IMessage Append(IWorkerRemoteConfiguration data)
        {
            Append(data.Executable);
            Append(data.StartClientVisible);

            Append(data.ClientConfiguration);

            return(this);
        }
        internal ProxyClientConfiguration(IProxyClientConfiguration original) : base(original)
        {
            Throw.If.Object.IsNull(original, nameof(original));

            AssemblyModeOverride = original.AssemblyModeOverride;
            AvailableRuntimes    = original.AvailableRuntimes;
            SelectedRuntimes     = original.SelectedRuntimes;
            WorkerDirectory      = original.WorkerDirectory;
            WorkerExecutableName = original.WorkerExecutableName;
            Factory.Instance.Copy(out IWorkerRemoteConfiguration remoteConfig, original.WorkerRemoteConfiguration);
            WorkerRemoteConfiguration = remoteConfig;
        }
Ejemplo n.º 4
0
 public void Create(out IWorkerRemote @object, IWorkerRemoteConfiguration configuration, IServerLink link) => @object = new WorkerRemote(configuration, link);
Ejemplo n.º 5
0
 public void Copy(out IWorkerRemoteConfiguration @object, IWorkerRemoteConfiguration original) => @object = new WorkerRemoteConfiguration(original);
Ejemplo n.º 6
0
 public void Create(out IWorkerRemoteConfiguration @object) => @object = new WorkerRemoteConfiguration();