public TaskSharingController(ISessionScopeFactory sessionScopeFactory,ITaskSharingManager taskSharingManager) : base(sessionScopeFactory) { if (sessionScopeFactory == null) throw new ArgumentNullException(nameof(sessionScopeFactory)); if (taskSharingManager == null) throw new ArgumentNullException(nameof(taskSharingManager)); m_TaskSharingManager = taskSharingManager; }
public static TaskSharingExistsResult Check(ITaskSharingManager taskSharingManager, string contentMd5) { var taskSharing = taskSharingManager.FetchTaskSharingByContentMd5(contentMd5).FirstOrDefault(); return Check(taskSharing, "不存在对应的任务共享信息."); }
public static TaskSharingExistsResult Check(ITaskSharingManager taskSharingManager, Guid taskSharingId) { var taskSharing = taskSharingManager.FindTaskSharing(taskSharingId); return Check(taskSharing, "不存在对应的任务共享信息."); }