ow
This commit is contained in:
1 parent
31fbe199c1
commit
1c0c83af5f
469 files changed
+62544
-5
No files matched your search
@@ -0,0 +1,31 @@
|
||||
using CloudBuilder.Core.DependencyInjection.Form;
|
||||
using CloudBuilder.Core.DependencyInjection.Policy;
|
||||
using CloudBuilder.Core.DependencyInjection.Request;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CloudBuilder.Core.Policy
|
||||
{
|
||||
public class CoreMessagePolicy : AbstractPolicy, IPolicy
|
||||
{
|
||||
public const string THE_DATA_HAS_BEEN_MODIFIED = "the_data_has_been_modified";
|
||||
|
||||
public static CoreMessagePolicy instance = null;
|
||||
|
||||
public CoreMessagePolicy(IContext context) : base(context)
|
||||
{
|
||||
this.values = new string[] { THE_DATA_HAS_BEEN_MODIFIED};
|
||||
}
|
||||
|
||||
public static CoreMessagePolicy GetInstance()
|
||||
{
|
||||
instance = ApplicationServiceContext.ServiceProvider.GetKeyedService<CoreMessagePolicy>(typeof(CoreMessagePolicy).Name);
|
||||
return instance;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user