internal AsyncJob(SteamClient client, ulong jobId) { jobStart = DateTime.UtcNow; JobID = jobId; client.StartJob(this); }
internal AsyncJob(SteamClient client, JobID jobId) { if (client == null) { throw new ArgumentNullException(nameof(client)); } if (jobId == null) { throw new ArgumentNullException(nameof(jobId)); } jobStart = DateTime.UtcNow; JobID = jobId; client.StartJob(this); }
/// <summary> /// Constructors are required to register this AsyncJob with the JobManager once initialized. /// </summary> /// <param name="client"></param> internal void RegisterJob(SteamClient client) { client.StartJob(this); }