/// <summary> /// Returns a new instance with the given flag enabled, or this instance if the flag is already present. /// </summary> private IComputeClient SetFlag(ComputeClientFlags newFlag) { var flags = _flags | newFlag; return(flags != _flags ? new ComputeClient(_ignite, flags, _timeout, _clusterGroup) : this); }
/// <summary> /// Initializes a new instance of <see cref="ComputeClient"/>. /// </summary> internal ComputeClient( IgniteClient ignite, ComputeClientFlags flags, TimeSpan?timeout, IClientClusterGroup clusterGroup) { _ignite = ignite; _flags = flags; _timeout = timeout ?? TimeSpan.Zero; _clusterGroup = clusterGroup; }