internal OctopusClient(OctopusServerEndpoint serverEndpoint, string requestingTool) { this.serverEndpoint = serverEndpoint; cookieOriginUri = BuildCookieUri(serverEndpoint); octopusCustomHeaders = new OctopusCustomHeaders(requestingTool); Repository = new OctopusRepository(this); }
internal OctopusClient(OctopusServerEndpoint serverEndpoint, string requestingTool, OctopusClientOptions options = default) { this.serverEndpoint = serverEndpoint; options ??= new OctopusClientOptions(); httpRouteExtractor = new HttpRouteExtractor(options.ScanForHttpRouteTypes); cookieOriginUri = BuildCookieUri(serverEndpoint); octopusCustomHeaders = new OctopusCustomHeaders(requestingTool); Repository = new OctopusRepository(this); }