using MatrixRoomUtils.Core.Attributes; namespace MatrixRoomUtils.Core.Services; public class HomeserverProviderService { private readonly TieredStorageService _tieredStorageService; public HomeserverProviderService(TieredStorageService tieredStorageService) { Console.WriteLine("Homeserver provider service instantiated!"); _tieredStorageService = tieredStorageService; Console.WriteLine( $"New HomeserverProviderService created with TieredStorageService<{string.Join(", ", tieredStorageService.GetType().GetProperties().Select(x => x.Name))}>!"); } public async Task GetAuthenticatedWithToken(string homeserver, string accessToken) { return await new AuthenticatedHomeServer(homeserver, accessToken, _tieredStorageService).Configure(); } }