public static UserTaskOperationSettings GetConfig()
		{
			UserTaskOperationSettings result =
				(UserTaskOperationSettings)ConfigurationBroker.GetSection("soaUserTaskOperationSettings");

			if (result == null)
				result = new UserTaskOperationSettings();

			return result;
		}
        public static UserTaskOperationSettings GetConfig()
        {
            UserTaskOperationSettings result =
                (UserTaskOperationSettings)ConfigurationBroker.GetSection("soaUserTaskOperationSettings");

            if (result == null)
            {
                result = new UserTaskOperationSettings();
            }

            return(result);
        }
Пример #3
0
        private UserOpContext InitEventContexts()
        {
            UserOpContext contexts = new UserOpContext();

            foreach (IUserTaskOperation op in UserTaskOperationSettings.GetConfig().Operations)
            {
                UserTaskOpEventContainer container = new UserTaskOpEventContainer();

                op.Init(container);
                contexts.EventContainers.Add(container);
            }

            return(contexts);
        }