コード例 #1
0
        /// <summary>
        /// Get a free busy writer for the set of users
        /// </summary>
        /// <param name="users">List of the users to write f/b info for</param>
        /// <returns>A FreeBusyWriter</returns>
        public static IFreeBusyWriter GetWriter(List<ExchangeUser> users)
        {
            IFreeBusyWriter writer = null;

            switch ( ConfigCache.FreeBusyWriter.ToUpperInvariant() )
            {
                default:
                case "SCHEDULEPLUS":
                    writer = new SchedulePlusFreeBusyWriter();
                    break;
                case "APPOINTMENT":
                    writer = new AppointmentWriter();
                    break;
            }

            return writer;
        }
コード例 #2
0
        /// <summary>
        /// Get a free busy writer for the set of users
        /// </summary>
        /// <param name="users">List of the users to write f/b info for</param>
        /// <returns>A FreeBusyWriter</returns>
        public static IFreeBusyWriter GetWriter(List <ExchangeUser> users)
        {
            IFreeBusyWriter writer = null;

            switch (ConfigCache.FreeBusyWriter.ToUpperInvariant())
            {
            default:
            case "SCHEDULEPLUS":
                writer = new SchedulePlusFreeBusyWriter();
                break;

            case "APPOINTMENT":
                writer = new AppointmentWriter();
                break;
            }

            return(writer);
        }