internal static Workshare.PolicyContent.Routing GetRouting(IRoutingResponse origRouting) { if (null == origRouting) throw new ArgumentNullException("origRouting"); Workshare.PolicyContent.Routing routing = new Workshare.PolicyContent.Routing(); routing.Description = origRouting.Description; routing.Name = origRouting.Name; routing.Rating = origRouting.Rating; routing.Properties = new CustomProperty[0]; if (origRouting.Properties != null && origRouting.Properties.Count > 0) { int index = 0; routing.Properties = new CustomProperty[origRouting.Properties.Count]; foreach (string key in origRouting.Properties.Keys) { routing.Properties[index++] = new CustomProperty(key, origRouting.Properties[key]); } } //TODO: Maybe add the actionsetid and routingset id? Possible we do not need them outside nxbre. return routing; }
public UIRouting(Routing routing) { m_routing = routing; }