internal PlatformBuilder(IServiceCollection services)
        {
            this.services = services;
            var everyoneFunctionBuilder = new ModelFunctionBuilder("Everyone");

            everyoneFunctionBuilder.AddPermission("All", opt => { everyone = opt; });
            functions.Add(everyoneFunctionBuilder);
        }
Exemple #2
0
        public Hcs.Platform.PlatformModule.IPlatformModuleBuilder AddModuleFuncion(string code, Action <ModelFunctionBuilder> build)
        {
            var builder = new ModelFunctionBuilder(code);

            build(builder);
            functions.Add(builder);
            return(this);
        }