PhoenixSharp.PhoenixClient.PhoenixClient C# (CSharp) Method

PhoenixClient() public method

Initializes a new instance of the PhoenixClient class. If the client is used within a VNET or on an on-premise cluster, no cluster credentials required. Pass null in this case.
public PhoenixClient ( ClusterCredentials credentials ) : Interfaces
credentials ClusterCredentials
return Interfaces
        public PhoenixClient(ClusterCredentials credentials)
        {
            if (credentials != null) // gateway mode
            {
                _requester = new GatewayWebRequester(credentials);
            }
            else // vnet mode
            {
                _requester = new VNetWebRequester();
            }
        }