public virtual void AddProcessorSession(string aID, IWCFProcessorInfo processorInfo) { lock (m_ActiveProcessorSessions) { var args = new ScriptingProcessorEventArgs(aID, processorInfo); if (!args.Cancel) { m_ActiveProcessorSessions.Add(aID, processorInfo); AddedProcessorSession?.Invoke(this, new ScriptingProcessorEventArgs(aID, processorInfo)); } else { throw new ApplicationException("The session is not enabled. Reason: " + args.Reason); } } }
public ScriptingProcessorEventArgs(string aID, IWCFProcessorInfo processorInfo, RequestMessage aRequest) { ID = aID; ProcessorInfo = processorInfo; Request = aRequest; }
public ScriptingProcessorEventArgs(string aID, IWCFProcessorInfo processorInfo) { ID = aID; ProcessorInfo = processorInfo; Request = null; }
public MessageRouter_EventArgs(string aID, IWCFProcessorInfo processorInfo, RequestMessage aRequest) { ID = aID; ProcessorInfo = processorInfo; Request = aRequest; }
private bool Equals(IWCFProcessorInfo other) => string.Equals(ServiceID, other?.ServiceID) && string.Equals(ID, other?.ID);
protected void PushToProcessor(ResponseMessage message, IWCFProcessorInfo processorInfo) => Pusher.PushToProcessor(message, processorInfo);