ServiceContext constructor
ServiceContext({
- Map<
String, String> ? headers, - Protocol? protocol,
- String? service,
- String? relayService,
- Session? session,
- OAuthSessionManager? oAuthSessionManager,
- Duration? timeout,
- RetryStrategy? retryConfig,
- GetClient? getClient,
- PostClient? postClient,
- Future<
Session> onRefreshSession(- Session current
Implementation
ServiceContext({
Map<String, String>? headers,
xrpc.Protocol? protocol,
String? service,
String? relayService,
Session? session,
this.oAuthSessionManager,
Duration? timeout,
RetryStrategy? retryConfig,
final xrpc.GetClient? getClient,
final xrpc.PostClient? postClient,
this.onRefreshSession,
}) : _headers = headers,
_protocol = protocol ?? defaultProtocol,
_currentSession = session,
_explicitService = service,
relayService = relayService ?? defaultRelayService,
_challenge = Challenge(retryConfig),
_timeout = timeout ?? defaultTimeout,
_getClient = getClient,
_postClient = postClient;