Esempio n. 1
0
        public TisStationDeclarationInfo(string serviceImplTypeName)
            : this()
        {
            System.Type serviceImplType = StringUtil.IsStringInitialized(serviceImplTypeName) ? System.Type.GetType(serviceImplTypeName) : default(System.Type);

            if (serviceImplType != null)
            {
                TisStationDeclarationAttribute stationDeclarationAttribute =
                    (TisStationDeclarationAttribute)ReflectionUtil.GetAttribute(serviceImplType, typeof(TisStationDeclarationAttribute));

                if (stationDeclarationAttribute != null)
                {
                    Type    = stationDeclarationAttribute.Type;
                    SubType = stationDeclarationAttribute.SubType;
                }
            }
        }
Esempio n. 2
0
 public TisStationDeclarationInfo(TisStationDeclarationAttribute stationDeclarationAttribute)
     : this(stationDeclarationAttribute.Type, stationDeclarationAttribute.SubType)
 {
 }