Пример #1
0
        public CswNbtWebServiceSession.CswNbtAuthReturn End(bool Deauthenticate)
        {
            CswWebSvcResourceInitializerNbt Resource = new CswWebSvcResourceInitializerNbt(_Context, null);

            Resource.initResources();
            Resource.deauthenticate();
            Resource.deInitResources();

            CswNbtWebServiceSession.CswNbtAuthReturn Ret = new CswNbtWebServiceSession.CswNbtAuthReturn();
            Ret.Authentication.AuthenticationStatus = CswEnumAuthenticationStatus.Deauthenticated;
            ((ICswWebSvcRetObj)Ret).finalize(Resource.CswNbtResources, _Context, Ret.Authentication.AuthenticationStatus);
            return(Ret);
        }
Пример #2
0
        public CswNbtWebServiceSession.CswNbtAuthReturn GetUserDefaults()
        {
            //delegate has to be static because you can't create an instance yet: you don't have resources until the delegate is actually called
            CswNbtWebServiceSession.CswNbtAuthReturn Ret = new CswNbtWebServiceSession.CswNbtAuthReturn();
            var InitDriverType = new CswWebSvcDriver <CswNbtWebServiceSession.CswNbtAuthReturn, object>(
                CswWebSvcResourceInitializer: new CswWebSvcResourceInitializerNbt(_Context, null),
                ReturnObj: Ret,
                WebSvcMethodPtr: CswNbtWebServiceSession.getUserDefaults,
                ParamObj: null
                );

            InitDriverType.run();
            return(Ret);
        }