public void DesigntimeInitialize() { if (null == _typeMaintainer) { _typeMaintainer = new TypeMaintainer(); } }
public SequenceManager() { if (null != _instance) { I18N i18N = I18N.GetInstance(Constants.I18nName); throw new TestflowRuntimeException(CommonErrorCode.InternalError, i18N.GetStr("InstAlreadyExist")); } lock (_instLock) { Thread.MemoryBarrier(); if (null != _instance) { I18N i18N = I18N.GetInstance(Constants.I18nName); throw new TestflowRuntimeException(CommonErrorCode.InternalError, i18N.GetStr("InstAlreadyExist")); } I18NOption i18NOption = new I18NOption(this.GetType().Assembly, "i18n_sequence_zh", "i18n_sequence_en") { Name = Constants.I18nName }; I18N.InitInstance(i18NOption); this.ConfigData = null; this.Version = string.Empty; _typeMaintainer = new TypeMaintainer(); _instance = this; } }