private void ThrowNoAuth() { if (!SocketService.IsConnected()) { throw new Exception("Connect and Authenticate first - scatter.connect( appName )"); } }
public Eos Eos() { if (!SocketService.IsConnected()) { throw new Exception("Scatter is not connected."); } if (Network == null) { throw new ArgumentNullException("network"); } string httpEndpoint = ""; if (Network.Port == 443) { httpEndpoint += "https://" + Network.Host; } else { httpEndpoint += "http://" + Network.Host + ":" + Network.Port; } return(new Eos(new EosConfigurator() { ChainId = Network.ChainId, HttpEndpoint = httpEndpoint, SignProvider = new ScatterSignatureProvider(this) })); }