public AddOffnetServiceRule(long serviceId, DateTime effDate, string tagName, bool allowReplacement, bool requireReplacement) { _tagName = tagName; _key = new OffnetServiceKey(serviceId) { EffectiveDate = effDate }; var sc = OffnetBiz.GetServiceConfiguration(serviceId, effDate); //_key.AllowSharedStandalone = sc.AllowSharedStandalone; }
protected AttributeValue CreateAttribute(OffnetServiceKey sk, string value) { //Need to determine type to use... try { var sc = OffnetBiz.GetServiceConfiguration(sk.Id, sk.EffectiveDate); if (!sc.IsConfigurableAttribute(_sAttName, sk)) { return(null); } return(new AttributeValue(value, value, AttributeType.SimpleText)); //Alaw simple text type for partner attributes } catch (Exception e) { Debugger.Log(new PcatExceptionInfo(this.ToString(), e)); throw new ApplicationException("Resolve Services failed. Unable to get ServiceAttribute type for " + _sAttName + " on Service " + sk?.Id); } }