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); }
public static Task PutLogicProviderAsync(string name, string sourceCode) { var serial = new SerialCSLogicProvider(name, sourceCode); return(PutLogicProviderAsync(serial)); }