public static object Create(this IFSGlobalObjects global, Type type)
        {
            var componentName = type.FullName;

            if (type.IsInterface)
            {
                componentName = $"{type.Namespace}.{type.Name.Substring(1)}";
            }

            return(global.CreateComponent(componentName));
        }
        public static TFSEntity Create <TFSEntity>(this IFSGlobalObjects global)
            where TFSEntity : class, IDevFrameworkObject
        {
            var type          = typeof(TFSEntity);
            var componentName = type.FullName;

            if (type.IsInterface)
            {
                componentName = $"{type.Namespace}.{type.Name.Substring(1)}";
            }

            return(global.CreateComponent(componentName) as TFSEntity);
        }
 public FSGlobalContext(NVIdentity identity, IFSGlobalObjects global)
 {
     Identity = identity;
     FSGlobal = global;
 }
        public static IFSGlobalObjects EnableCaching(this IFSGlobalObjects global)
        {
            global.ocGlobal.oCache.bEnabled = true;

            return(global);
        }
        public static IFSGlobalObjects Authenticate(this IFSGlobalObjects global, NVIdentity identity)
        {
            cLoginFactory.Create(global).LoginServiceHost(identity.Name, identity.Password, identity.BusinessUnit);

            return(global);
        }
Beispiel #6
0
 public FSGlobal(NVIdentity identity, IFSGlobalObjects global)
 {
     Identity = identity;
     Global   = global;
 }