/// <summary> /// Creates a new DevCenterHandler using the provided credentials /// </summary> /// <param name="credentials">Authorization credentials for HWDC</param> public DevCenterHandler(AuthorizationHandlerCredentials credentials, uint httpTimeoutSeconds, Guid correlationId, LastCommandDelegate lastCommand) { AuthCredentials = credentials; AuthHandler = new AuthorizationHandler(AuthCredentials, httpTimeoutSeconds); HttpTimeout = TimeSpan.FromSeconds(httpTimeoutSeconds); CorrelationId = correlationId; LastCommand = lastCommand; }
/// <summary> /// Creates a new DevCenterHandler using the provided credentials /// </summary> /// <param name="credentials">Authorization credentials for HWDC</param> /// <param name="options">Options object containing options necessary for DevCenterHandler to function</param> public DevCenterHandler(AuthorizationHandlerCredentials credentials, DevCenterOptions options) { AuthCredentials = credentials; AuthHandler = new AuthorizationHandler(AuthCredentials, options.HttpTimeoutSeconds); HttpTimeout = TimeSpan.FromSeconds(options.HttpTimeoutSeconds); RequestDelayMs = options.RequestDelayMs; CorrelationId = options.CorrelationId; LastCommand = options.LastCommand; }