示例#1
0
        public static CustomActivity StartSyncron(string taskname, CustomActivity parentActivity, CustomActivity.OperationType operationType, string target)
        {
            CustomActivity dependencyActivity = new CustomActivity(taskname, parentActivity, operationType, target);

            s_DictionaryStarts.TryAdd(taskname, s_Time.Elapsed);
            return(dependencyActivity);
        }
示例#2
0
        public static async ValueTask <CustomActivity> StartSyncronAsync(string taskname, CustomActivity parentActivity, CustomActivity.OperationType operationType, string target)
        {
            CustomActivity dependencyActivity = new CustomActivity(taskname, parentActivity, operationType, target);
            await s_DictionaryStarts.TryAddAsync(taskname, s_Time.Elapsed);

            return(dependencyActivity);
        }