Exemplo n.º 1
0
        public override bool Init()
        {
            if (mIsInitCalled)
            {
                return(false);
            }
            mIsInitCalled = true;
            MyBaseThing.RegisterEvent(eEngineEvents.IncomingMessage, HandleMessage);
            MyBaseThing.RegisterProperty("sendmail");
            MyBaseThing.StatusLevel = 1;

            MyBaseThing.DeclareSecureProperty(nameof(Password), ePropertyTypes.TString);

            mIsInitialized = true;
            return(true);
        }