public override void Init(IMsmqTrasport transport) { parentTransport = transport; timeoutMessageIds.Write(writer => { foreach (var message in queueStrategy.GetTimeoutMessages(transport.Queue)) { writer.Add(message.Time, message.Id); } }); timeoutTimer = new Timer(OnTimeoutCallback, null, TimeSpan.FromSeconds(0), TimeSpan.FromSeconds(1)); }
public virtual void Init(IMsmqTrasport transport) { }
public void Init(IMsmqTrasport transport) { transport.MessageSerializationException += Transport_OnMessageSerializationException; transport.MessageProcessingFailure += Transport_OnMessageProcessingFailure; transport.MessageProcessingCompleted += Transport_OnMessageProcessingCompleted; }
public override void Init(IMsmqTrasport parentTransport) { transport = parentTransport; }