getOneSession static method

Future<SessionConfig> getOneSession(
  1. String runId
)

Implementation

static Future<SessionConfig> getOneSession(String runId) async {
  final channel = await Channel.getOpenIoTHubChannel();
  final stub = SessionManagerClient(channel);
  SessionConfig sessionConfig = SessionConfig();
  sessionConfig.runId = runId;
  final newSessionConfig = await stub.getOneSession(sessionConfig);
  channel.shutdown();
  return newSessionConfig;
}