public PusherWorker(IServiceProvider services, Guid sourceId) : base(services) { _sourceId = sourceId; _pusher = new Pusher("ddb8c477293f80ee9c63", new PusherOptions { Cluster = "us3", Authorizer = new HttpAuthorizer("https://api.blaseball.com/api/pusher/auth") }); _db = services.GetRequiredService <Database>(); _updateStore = services.GetRequiredService <UpdateStore>(); _client = services.GetRequiredService <HttpClient>(); _pusherEventStore = services.GetRequiredService <PusherEventStore>(); _clock = services.GetRequiredService <IClock>(); }
public EventsController(Database db, PusherEventStore eventStore) { _db = db; _eventStore = eventStore; }