M10Directory constructor

M10Directory(
  1. String host, {
  2. TokenProvider? tokenProvider,
  3. bool disableTls = false,
  4. int port = 443,
})

Implementation

M10Directory(
  String host, {
  TokenProvider? tokenProvider,
  bool disableTls = false,
  int port = 443,
})  : _tokenProvider = tokenProvider,
      _client = DirectoryServiceClient(
        ClientChannel(
          host,
          port: port,
          options: ChannelOptions(
            credentials: disableTls
                ? const ChannelCredentials.insecure()
                : const ChannelCredentials.secure(),
          ),
        ),
      );