Example #1
0
        public EntityReference Register(IOrganizationService client)
        {
            var pluginType = new PluginType()
            {
                PluginAssemblyId = this.ParentAssembly,
                TypeName         = this.Name,
                FriendlyName     = this.FriendlyName,
                Name             = this.Name,
                Description      = this.Description
            };

            var existingPluginQuery = this.GetExistingQuery(this.ParentAssembly.Id);

            return(pluginType.CreateOrUpdate(client, existingPluginQuery));
        }