Exemplo n.º 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);
 }
Exemplo n.º 2
0
        public static Task PutLogicProviderAsync(string name, string sourceCode)
        {
            var serial = new SerialCSLogicProvider(name, sourceCode);

            return(PutLogicProviderAsync(serial));
        }