Goedel.Mesh.Mesh.AddProfile C# (CSharp) Method

AddProfile() public method

Check the specified personal profile and add it to the mesh.
public AddProfile ( SignedProfile Profile ) : void
Profile SignedProfile The profile to add.
return void
        public void AddProfile(SignedProfile Profile) {
            // Validate the signed profile
            if (!Profile.Valid) throw new Throw("Profile not valid");

            //var KeyData = new IndexTerm(UniqueID, Profile.Identifier);
            //var KeyDatas = new List<IndexTerm> { KeyData };

            var UniqueID = Profile.UniqueID;
            var IndexTerms = Profile.IndexTerms;

            MeshStore.New(Profile, UniqueID, IndexTerms);
            }

Usage Example

Exemplo n.º 1
0
        public void MeshStorem() {
            File.Delete(Store);
            File.Delete(Portal);
            Mesh = new Mesh(Service, Store, Portal);
            Mesh.CheckAccount(AccountID);

            var DevProfile = new SignedDeviceProfile(Device1, Device1Description);
            var UserProfile = new PersonalProfile(DevProfile);

            var SignedProfile = UserProfile.Signed;
            Mesh.CreateAccount(UserName, SignedProfile);

            Mesh.GetAccount(UserName);

            var PasswordProfile = new PasswordProfile(true);
            var SignedPasswordProfile = PasswordProfile.Signed;

            SignedProfile = UserProfile.Signed;
            Mesh.AddProfile(SignedPasswordProfile);
            Mesh.UpdateProfile(SignedProfile);





            }
All Usage Examples Of Goedel.Mesh.Mesh::AddProfile