public SimulatedRequestServer( IRequestBroker requestBroker, ILogger logger, QueueSimulator queue) : base(requestBroker, logger) { _queue = queue ?? throw new ArgumentNullException(nameof(queue)); }
public RequestMessagePump(MessagingFactory messagingFactory, IRequestBroker requestBroker, Type messageType, ILogger logger) : base(logger) { _messagingFactory = messagingFactory; _requestBroker = requestBroker; _messageType = messageType; }
public ServiceBusRequestServer(IRequestBroker requestBroker, ILogger logger) : base(requestBroker, logger) { // Endpoint - AccountId // SharedAccessKeyName - UserName // SharedAccessKey - AccessKey // DestinationEntityPath - ResourceName }
public void CreateHost(ApplicationServer server, WebSource webSource) { string v = vpath; if (v != "/" && v.EndsWith("/")) { v = v.Substring(0, v.Length - 1); } AppHost = ApplicationHost.CreateApplicationHost(webSource.GetApplicationHostType(), v, realPath) as IApplicationHost; AppHost.Server = server; // Link the host in the application domain with a request broker in the main domain RequestBroker = webSource.CreateRequestBroker(); AppHost.RequestBroker = RequestBroker; }
public void CreateHost(ApplicationServer server, WebSource webSource) { string v = vpath; if (v != "/" && v.EndsWith("/")) { v = v.Substring(0, v.Length - 1); } var domain = AppDomain.CurrentDomain; var debugDomain = domain.GetData("DebugDomain") as DebugDomain; var listAsm = domain.GetAssemblies(); // { Mono.WebServer, Version = 4.4.0.0, Culture = neutral, PublicKeyToken = 0738eb9f132ed756} // { Mono.WebServer.XSP, Version = 4.9.0.0, Culture = neutral, PublicKeyToken = 0738eb9f132ed756} Exception error = null; try { var hostType = webSource.GetApplicationHostType(); AppHost = Mono.Web.Hosting. ApplicationHost.CreateApplicationHost(hostType, v, realPath) as IApplicationHost; AppHost.Server = server; } catch (Exception err) { error = err.InnerException ?? err; } if (AppHost == null && error != null) { Console.WriteLine(error.Message); if (Debugger.IsAttached) { Debugger.Break(); } Console.ReadKey(); // throw error; } if (!server.SingleApplication) { // Link the host in the application domain with a request broker in the main domain RequestBroker = webSource.CreateRequestBroker(); AppHost.RequestBroker = RequestBroker; } }
public void CreateHost(ApplicationServer server, WebSource webSource) { string v = vpath; if (v != "/" && v.EndsWith ("/")) { v = v.Substring (0, v.Length - 1); } AppHost = ApplicationHost.CreateApplicationHost (webSource.GetApplicationHostType(), v, realPath) as IApplicationHost; AppHost.Server = server; if (!server.SingleApplication) { // Link the host in the application domain with a request broker in the main domain RequestBroker = webSource.CreateRequestBroker (); AppHost.RequestBroker = RequestBroker; } }
public static BusBuilderConfiguration WithRequestBroker(this BusBuilderConfiguration configuration, IRequestBroker requestBroker) { configuration.RequestBroker = requestBroker; return configuration; }
private static object InvokeGenericHandleMethod(IRequestBroker requestBroker, object request) { var handleMethod = ExtractHandlerMethodInfo(request); var response = handleMethod.Invoke(requestBroker, new[] {request}); return response; }
public AbstractRequestServer(IRequestBroker requestBroker, ILogger logger) { _requestBroker = requestBroker ?? throw new ArgumentNullException(nameof(requestBroker)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }