示例#1
0
 public static async Task PutLogicProviderAsync(SerialCSLogicProvider data)
 {
     if (LogicStore == null)
     {
         return;                // Task.FromResult<object>(null);
     }
     //string serial = logicStore.Serializer.Serialize(data);
     await LogicStore.Entities.PutAsync(data._id, data);
 }
示例#2
0
        public static Task PutLogicProviderAsync(string name, string sourceCode)
        {
            var serial = new SerialCSLogicProvider(name, sourceCode);

            return(PutLogicProviderAsync(serial));
        }