예제 #1
0
        public static UEditorActionCollection AddUEditorService(
            this IServiceCollection services,
            string configFile = "ueditorconfig.json",
            bool isCache      = false)
        {
            Config.ConfigFile = configFile;
            Config.noCache    = !isCache;

            var actions = new UEditorActionCollection();

            services.AddSingleton(actions);
            services.AddSingleton <UEditorService>();

            return(actions);
        }
예제 #2
0
 public UEditorService(UEditorActionCollection actions)
 {
     actionList = actions;
 }