public FeedController(ISubscriptionManager subscriptionManager, IHttpContextAccessor httpContextAccessor, IXmlRpcManager xmlRpcManager, IMemoryCache memoryCache) { this.subscriptionManager = subscriptionManager; this.xmlRpcManager = xmlRpcManager; this.memoryCache = memoryCache; }
public HomeController(IBlogManager blogManager, IDasBlogSettings settings, IXmlRpcManager rpcManager, IMapper mapper) : base(settings) { _blogManager = blogManager; _xmlRpcManager = rpcManager; _dasBlogSettings = settings; _mapper = mapper; }
public HomeController(IBlogManager blogManager, IDasBlogSettings settings, IXmlRpcManager rpcManager, IMapper mapper, ILogger <HomeController> logger) : base(settings) { this.blogManager = blogManager; dasBlogSettings = settings; this.mapper = mapper; this.logger = logger; }
public FeedController(ISubscriptionManager subscriptionManager, IXmlRpcManager xmlRpcManager, IMemoryCache memoryCache, IDasBlogSettings dasBlogSettings, ILogger <FeedController> logger) { this.subscriptionManager = subscriptionManager; this.xmlRpcManager = xmlRpcManager; this.memoryCache = memoryCache; this.dasBlogSettings = dasBlogSettings; this.logger = logger; }
public FeedController(ISubscriptionManager subscriptionManager, IHttpContextAccessor httpContextAccessor, IXmlRpcManager xmlRpcManager, IMemoryCache memoryCache, IDasBlogSettings dasBlogSettings) { this.subscriptionManager = subscriptionManager; this.xmlRpcManager = xmlRpcManager; this.memoryCache = memoryCache; this.dasBlogSettings = dasBlogSettings; loggingDataService = LoggingDataServiceFactory.GetService(dasBlogSettings.WebRootDirectory + dasBlogSettings.SiteConfiguration.LogDir); }
public void InitFixture() { ConsoleTraceListener myWriter = new ConsoleTraceListener(); Debug.Listeners.Add(myWriter); Node n = new StructuredNode(new AHAddress(new RNGCryptoServiceProvider())); _rpc = XmlRpcManagerClient.GetXmlRpcManager("127.0.0.1", Port, "xm.rem", true); _mrm = MockRpcManager.GetInstance(n); _server = new XmlRpcManagerServer(Port); _server.Add(n, _mrm, "xm1.rem"); Debug.WriteLine(string.Format("Server started at {0}", Port)); }
/** * Creates an XmlRpcManager instance with the specified ip, port. * Logs Request and Response messages in XML if logReqresp is set to true */ public static IXmlRpcManager GetXmlRpcManager(string ip, int port, string relativeUri, bool logReqresp) { IXmlRpcManager proxy = XmlRpcProxyGen.Create <IXmlRpcManager>(); proxy.Url = string.Format("http://{0}:{1}/{2}", ip, port, relativeUri); if (logReqresp) { XmlRpcManagerClientLogger logger = new XmlRpcManagerClientLogger(); logger.Attach(proxy); } return(proxy); }
public BrunetDhtService(string host, int port, string relativeUri) { _dht = XmlRpcManagerClient.GetXmlRpcManager(host, port, relativeUri, false); }
public void InitFixture() { ConsoleTraceListener myWriter = new ConsoleTraceListener(); Debug.Listeners.Add(myWriter); _rpc = XmlRpcManagerClient.GetXmlRpcManager("127.0.0.1", Port, true); Node n = new StructuredNode(new AHAddress(new RNGCryptoServiceProvider())); _mrm = MockRpcManager.GetInstance(n); _server = new XmlRpcManagerServer(Port); _server.Update(n, _mrm); Debug.WriteLine(string.Format("Server started at {0}", Port)); }
public HomeController(IBlogManager blogManager, IDasBlogSettings dasblogsettings, IXmlRpcManager rpcManager, IMapper mapper, ILogger <HomeController> logger, IMemoryCache memoryCache) : base(dasblogsettings) { this.blogManager = blogManager; this.dasBlogSettings = dasblogsettings; this.mapper = mapper; this.logger = logger; this.memoryCache = memoryCache; }
public BrunetDhtService(string host, int port, string relativeUri) { _dht = XmlRpcManagerClient.GetXmlRpcManager(host, port, relativeUri, false); }