protected BaseSteamCommand(ISteamSessionFactory factory) { _factory = factory; _app = SystemExtensions.CreateLazy(() => new App(AppId)); HasRequiredOption <uint>("a|appid=", "AppID", s => AppId = s); HasFlag("v|verbose", "Verbose", f => Common.Flags.Verbose = f); }
protected LocalContent(string packageName, Guid gameId, string version) : base(gameId) { if (!(!string.IsNullOrWhiteSpace(packageName))) { throw new ArgumentNullException("!string.IsNullOrWhiteSpace(packageName)"); } PackageName = packageName; Version = version; _source = SystemExtensions.CreateLazy(() => new ContentPublisher(Publisher.withSIX, PackageName)); }
protected PackagedContent(string packageName, Guid gameId) : base(gameId) { if (packageName == null) { throw new ArgumentNullException(nameof(packageName)); } if (!(!string.IsNullOrWhiteSpace(packageName))) { throw new ArgumentOutOfRangeException("!string.IsNullOrWhiteSpace(packageName)"); } PackageName = packageName; _source = SystemExtensions.CreateLazy(() => new ContentPublisher(Publisher.withSIX, PackageName)); }
protected LocalContent() { _source = SystemExtensions.CreateLazy(() => new ContentPublisher(Publisher.withSIX, PackageName)); }
protected App(AppId_t id) { Id = id; _steamInfo = SteamHelper.TryGetSteamAppById(Id.m_AppId); _directories = SystemExtensions.CreateLazy(GetDirectories); }