public void CreateAgentIdentificationManager(Uri baseUri) { if (this.agentIdentificationManager != null) { throw new InvalidOperationException( $"{nameof (CreateAgentIdentificationManager)} has already been invoked"); } this.agentIdentificationManager = new AgentIdentificationManager(baseUri); }
public ClientWebServer(FilePath clientResourcesBundledBasePath) { this.clientResourcesBundledBasePath = clientResourcesBundledBasePath; this.clientResourcesSourceBasePath = DevEnvironment.RepositoryRootDirectory; if (clientResourcesSourceBasePath.DirectoryExists) { clientResourcesSourceBasePath = clientResourcesSourceBasePath.Combine( "Xamarin.Interactive.Client", "ClientApp"); } if (!clientResourcesBundledBasePath.IsNull && !clientResourcesBundledBasePath.DirectoryExists) { throw new DirectoryNotFoundException(clientResourcesSourceBasePath); } Start(); AgentIdentificationManager = new AgentIdentificationManager( new Uri(BaseUri, "/api/identify")); }