Skip to content

Commit

Permalink
documentation update
Browse files Browse the repository at this point in the history
  • Loading branch information
jensenkd committed Mar 4, 2021
1 parent 5241716 commit bdfee25
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,30 +54,10 @@ NOTE: v2.0 documentation updates are incoming...
Platform = "Web",
Version = "v1"
};





this.TestConfiguration = new TestConfiguration(this.Configuration["Plex:Login"],
this.Configuration["Plex:Password"], this.Configuration["Plex:AuthenticationKey"], clientOptions);

this.PlexFactory = this.ServiceProvider.GetService<IPlexFactory>();
if (this.PlexFactory == null)
{
throw new ApplicationException("Invalid Plex Factory Object");
}

this.Account = this.PlexFactory.GetPlexAccount(this.TestConfiguration.Login, this.TestConfiguration.Password);
if (this.Account == null)
{
throw new ApplicationException("Invalid Login Credentials");
}

// Setup Dependency Injection
var services = new ServiceCollection();
services.AddLogging();
services.AddSingleton(clientOptions);
services.AddSingleton(apiOptions);
services.AddTransient<IPlexServerClient, PlexServerClient>();
services.AddTransient<IPlexAccountClient, PlexAccountClient>();
services.AddTransient<IPlexLibraryClient, PlexLibraryClient>();
Expand Down

0 comments on commit bdfee25

Please sign in to comment.