Exemplo n.º 1
0
        public override List <TypeSynchronizer> CreateTypeSynchronizer(SyncTreeType type)
        {
            List <TypeSynchronizer> list = new List <TypeSynchronizer>();

            if (this.ehfWebServiceVersion != EhfWebServiceVersion.Version1 && this.ehfWebServiceVersion != EhfWebServiceVersion.Version2)
            {
                EdgeSyncEvents.Log.LogEvent(EdgeSyncEventLogConstants.Tuple_EhfWebServiceVersionIsNotSupported, null, new object[]
                {
                    this.ehfWebServiceVersion,
                    this.identity
                });
                return(list);
            }
            if (type == SyncTreeType.Configuration)
            {
                list.Add(EhfCompanySynchronizer.CreateTypeSynchronizer());
                list.Add(EhfDomainSynchronizer.CreateTypeSynchronizer());
            }
            else if (type == SyncTreeType.Recipients)
            {
                list.Add(EhfAdminAccountSynchronizer.CreateTypeSynchronizer());
            }
            return(list);
        }