public static ClientConnection Connection(MetlConfiguration config,Credentials creds,IAuditor auditor) { return auditor.wrapFunction(((auditAction) => { var webCreds = new NetworkCredential(creds.name, creds.password); auditAction(GaugeStatus.InProgress,7); //var jabberCreds = new Credentials(config.xmppUsername, config.xmppPassword,new List<AuthorizedGroup>(),""); var wcf = new WebClientFactory(webCreds,auditor,creds); auditAction(GaugeStatus.InProgress,14); var receiveEvents = new ProductionReceiveEvents(auditor); auditAction(GaugeStatus.InProgress,21); var authProvider = new AuthorisationProvider(wcf, config,auditor); auditAction(GaugeStatus.InProgress,28); var httpProvider = new HttpResourceProvider(wcf,auditor); auditAction(GaugeStatus.InProgress,35); var resourceUploaderFactory = new ProductionResourceUploaderFactory(config, httpProvider,auditor); auditAction(GaugeStatus.InProgress,42); var resourceUploader = resourceUploaderFactory.get(); auditAction(GaugeStatus.InProgress,49); var resourceCache = new ResourceCache(); auditAction(GaugeStatus.InProgress,56); var configurationProvider = new ConfigurationProvider(wcf,auditor); auditAction(GaugeStatus.InProgress,63); auditAction(GaugeStatus.InProgress,70); var jabberWireFactory = new JabberWireFactory(config, creds, configurationProvider,resourceUploader,resourceCache, receiveEvents, wcf, httpProvider,auditor); auditAction(GaugeStatus.InProgress,77); var userOptionsProvider = new UserOptionsProvider(config, httpProvider, resourceUploader); auditAction(GaugeStatus.InProgress,84); var cc = new ClientConnection(config, receiveEvents, authProvider, resourceUploader, jabberWireFactory.conversationDetailsProvider, resourceCache, jabberWireFactory, wcf, userOptionsProvider, httpProvider,auditor); auditAction(GaugeStatus.InProgress, 91); return cc; }), "create client connection", "backend"); }
public PrintParser( Credentials credentials, int room, MeTLLib.Providers.Structure.IConversationDetailsProvider conversationDetailsProvider, HttpHistoryProvider historyProvider, CachedHistoryProvider cachedHistoryProvider, MetlConfiguration metlServerAddress, ResourceCache cache, IReceiveEvents receiveEvents, IWebClientFactory webClientFactory, HttpResourceProvider httpResourceProvider, IAuditor _auditor) : base(credentials, room, conversationDetailsProvider, historyProvider, cachedHistoryProvider, metlServerAddress, cache, receiveEvents, webClientFactory, httpResourceProvider,_auditor) { }
public void CleanUpCacheTest() { ResourceCache target = new ResourceCache(); // TODO: Initialize to an appropriate value target.CleanUpCache(); Assert.Inconclusive("A method that does not return a value cannot be verified."); }
public void ResourceCacheConstructorTest() { ResourceCache target = new ResourceCache(); Assert.Inconclusive("TODO: Implement code to verify target"); }
public void adoptCache(ResourceCache cache, MeTLServerAddress server) { if (videoSpecification == null) videoSpecification = new MeTLStanzas.Video(this); videoSpecification.adoptCache(cache, server); }
public void adoptCache(ResourceCache cache, MeTLServerAddress server) { if (imageSpecification == null) imageSpecification = new MeTLStanzas.Image(this); this.cache = cache; this.server = server; imageSpecification.adoptCache(cache, server); }
public Image adoptCache(ResourceCache cache, MeTLServerAddress server) { this.cache = cache; this.server = server; return this; }