public StreamingTimerService(IQueueWriter target, IStreamingContainer storage, IEnvelopeStreamer streamer) { _target = target; _storage = storage; _streamer = streamer; _suffix = Guid.NewGuid().ToString().Substring(0, 4); }
public static Exception ContainerNotFound(IStreamingContainer item, Exception inner = null) { var message = string.Format(CultureInfo.InvariantCulture, "Storage container was not found: '{0}'.", item.FullPath); return(new StreamingContainerNotFoundException(message, inner)); }
internal bool Contains(IStreamingContainer container) { return(GetRealContainer()._containers.ContainsKey(container.FullPath)); }
internal void Remove(IStreamingContainer container) { MemoryStreamingContainer dummy; GetRealContainer()._containers.TryRemove(container.FullPath, out dummy); }
public static Exception ContainerNotFound(IStreamingContainer item, Exception inner = null) { var message = string.Format(CultureInfo.InvariantCulture, "Storage container was not found: '{0}'.", item.FullPath); return new StreamingContainerNotFoundException(message, inner); }
internal bool Contains(IStreamingContainer container) { return GetRealContainer()._containers.ContainsKey(container.FullPath); }
public MailQuarantine(SmtpHandlerCore core, IStreamingRoot root) { _core = core; _container = root.GetContainer("sample-errors").Create(); }
public Quarantine(IStreamingRoot root) { _container = root.GetContainer(IdFor.ErrorBlob).Create(); }