ServerConnection Class

Summary

Provides both the identity and credentials for a GitLab server
Assembly
Cake.GitLab.dll
Namespace
Cake.GitLab
Interfaces
Base Types
graph BT Type-->Base0["ServerIdentity"] click Base0 "/api/Cake.GitLab/ServerIdentity" Base0-->Base1["Object"] Type-.->Interface0["IEquatable<ServerIdentity>"] Type-.->Interface1["IEquatable<ServerConnection>"] Type["ServerConnection"] class Type type-node

Syntax

public class ServerConnection : ServerIdentity, IEquatable<ServerIdentity>, 
    IEquatable<ServerConnection>

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Constructors

Properties

Name Value Summary
EqualityContract Type

Methods

Name Value Summary
Equals(object) bool
Equals(ServerConnection) bool
Indicates whether the current object is equal to another object of the same type.
Equals(ServerIdentity) bool
FromUrl(string) ServerIdentity
Initializes a new ServerIdentity from a server url
Inherited from ServerIdentity
static
get_AccessToken() string
get_Host() string
Inherited from ServerIdentity
get_Port() int
Inherited from ServerIdentity
get_Protocol() string
Inherited from ServerIdentity
get_Url() string
Inherited from ServerIdentity
GetHashCode() int
Serves as the default hash function.
PrintMembers(StringBuilder) bool
set_AccessToken()
set_Host()
Inherited from ServerIdentity
set_Port()
Inherited from ServerIdentity
set_Protocol()
Inherited from ServerIdentity
set_Url()
Inherited from ServerIdentity
ToString() string

Operators

Name Value Summary
operator !=(ServerConnection, ServerConnection) bool
operator !=(ServerIdentity, ServerIdentity) bool
Inherited from ServerIdentity
operator ==(ServerConnection, ServerConnection) bool
operator ==(ServerIdentity, ServerIdentity) bool
Inherited from ServerIdentity

Extension Methods

Name Value Summary
Dump<ServerConnection>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<ServerConnection>(ServerConnection[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<ServerConnection>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
NotNull<ServerConnection>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
ThrowIfNull<ServerConnection>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<ServerConnection>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin