コード例 #1
0
 internal OctopusClient(OctopusServerEndpoint serverEndpoint, string requestingTool)
 {
     this.serverEndpoint  = serverEndpoint;
     cookieOriginUri      = BuildCookieUri(serverEndpoint);
     octopusCustomHeaders = new OctopusCustomHeaders(requestingTool);
     Repository           = new OctopusRepository(this);
 }
コード例 #2
0
        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);
        }