ServerIdentity Class

Summary

Encapsulates the identity of GitLab server
Assembly
Cake.GitLab.dll
Namespace
Cake.GitLab
Interfaces
Base Types
  • Object
Derived Types
graph BT Type-->Base0["Object"] Type-.->Interface0["IEquatable<ServerIdentity>"] Type["ServerIdentity"] class Type type-node Derived0["ServerConnection"]-->Type click Derived0 "/api/Cake.GitLab/ServerConnection"

Syntax

public class ServerIdentity : IEquatable<ServerIdentity>

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Constructors

Name Summary
ServerIdentity(ServerIdentity)
ServerIdentity(string, string, int) Initializes a new instance of ServerIdentity with the specified protocol, host name and port
ServerIdentity(string, string) Initializes a new instance of ServerIdentity with the specified host name and protocol
ServerIdentity(string) Initializes a new instance of ServerIdentity with the specified host name

Properties

Name Value Summary
EqualityContract Type

Methods

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

Operators

Name Value Summary
operator !=(ServerIdentity, ServerIdentity) bool
operator ==(ServerIdentity, ServerIdentity) bool

Extension Methods

Name Value Summary
Dump<ServerIdentity>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<ServerIdentity>(ServerIdentity[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<ServerIdentity>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
NotNull<ServerIdentity>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
ThrowIfNull<ServerIdentity>(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<ServerIdentity>(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