Exemplo n.º 1
0
		public ConnectionState For(string id)
		{
			return connections.GetOrAdd(id, _ =>
			                                	{
			                                		var connectionState = new ConnectionState(null);
			                                		TimeSensitiveStore.Missing(id);
			                                		return connectionState;
			                                	});
		}
Exemplo n.º 2
0
		public ConnectionState For(string id, RavenDbApiController controller = null)
		{
			return connections.GetOrAdd(id, _ =>
			{
				IEventsTransport eventsTransport = null;
				if (controller != null)
					eventsTransport = new ChangesPushContent(controller);
				
				var connectionState = new ConnectionState(eventsTransport);
				TimeSensitiveStore.Missing(id);
				return connectionState;
			});
		}