示例#1
0
 public PrivateCommunityClient(HeldinConfig config)
     : base(config)
 {
     CommunityMapper = new CommunityPersonMapper();
     ChangesMapper   = new PrivateChangesMapper();
     CheckCanUseCommunityMethods();
 }
示例#2
0
        public BaseClient(HeldinConfig config)
        {
            this.config           = config;
            serviceHeaders        = InitServiceHeaders();
            clientHeader          = InitClientHeader();
            protocolVersionHeader = PROTOCOL_VERSION;
            userIdHeader          = config.UserId;
            issueHeader           = null;
            webService            = FolkClient.WebService(config.Host, config.Secure);
            var myPrivileges = GetMyPrivileges();

            canUseCommunityMethods = myPrivileges.Contains(CAN_USE_COMMUNITY_METHODS);
            CheckPrivileges(myPrivileges);
        }
示例#3
0
 public HeldinConfig NoSubSystemCode()
 {
     return(HeldinConfig.Create(host, secure, xRoadInstancePrefix + envSuffix + '/'
                                + memberClass + '/' + memberCodeValue));
 }
示例#4
0
 public PublicCommunityClient(HeldinConfig config)
     : base(config)
 {
     ChangesMapper = new PublicChangesMapper();
     CheckCanGetPublicChanges();
 }
示例#5
0
 public static PublicCommunityClient PublicCommunity(HeldinConfig config)
 {
     return(new PublicCommunityClient(config));
 }
示例#6
0
 public static PrivateCommunityClient PrivateCommunity(HeldinConfig config)
 {
     return(new PrivateCommunityClient(config));
 }
示例#7
0
 public static PersonMediumClient PersonMedium(HeldinConfig config)
 {
     return(new PersonMediumClient(config));
 }
示例#8
0
 public static PersonSmallClient PersonSmall(HeldinConfig config)
 {
     return(new PersonSmallClient(config));
 }
 protected PrivilegesSmallClient(HeldinConfig config)
     : base(config)
 {
 }
示例#10
0
 public PersonSmallClient(HeldinConfig config)
     : base(config)
 {
     PersonMapper = new PersonSmallMapper();
 }
示例#11
0
 protected PrivilegesMediumClient(HeldinConfig config)
     : base(config)
 {
 }
示例#12
0
 public PersonMediumClient(HeldinConfig config)
     : base(config)
 {
     PersonMapper = new PersonMediumMapper();
 }