Adxstudio.Xrm.EventHubBasedInvalidation.InvalidationHandler.GetConnectionId(System.Collections.Specialized.NameValueCollection)

Here are the examples of the csharp api class Adxstudio.Xrm.EventHubBasedInvalidation.InvalidationHandler.GetConnectionId(System.Collections.Specialized.NameValueCollection) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: xRM-Portals-Community-Edition
Source File: InvalidationHandler.cs
protected  IEnumerable<IOrganizationServiceCache> GetServiceCaches()
		{
			var section = CrmConfigurationManager.GetCrmSection();

			var elements = section.ServiceCache.Cast<OrganizationServiceCacheElement>().ToList();

			if (!elements.Any())
			{
				yield return CrmConfigurationManager.CreateServiceCache(null, (string)null, true);
			}
			else
			{
				// ignore service cache objects that are nested in a composite service cache

				var ignored = (
					from element in elements
					let inner = element.Parameters["innerServiceCacheName"]
					where !string.IsNullOrWhiteSpace(inner)
					select inner).ToList();

				foreach (var element in elements.Where(e => !ignored.Contains(e.Name)))
				{
					var connectionId = GetConnectionId(element.Parameters);

					yield return CrmConfigurationManager.CreateServiceCache(element.Name, connectionId, true);
				}
			}
		}