コード例 #1
0
 public static Guid?Login(String loginName, String password, bool encryptedPassword)
 {
     try
     {
         return(RpcInvoker.InvokeMethod <Guid?>(loginName, password, encryptedPassword));
     }
     catch (Exception ex)
     {
         LogError.Log("ErrorLog_PinService_", ex, stream =>
         {
             stream.WriteLine(String.Format("HMIS Login Error: {0}", ex.Message
                                            ));
         });
         throw;
     }
 }
コード例 #2
0
 public static PersonContract GetPersonInfo(Guid loginToken, Guid?moduleID, String personalID)
 {
     try
     {
         return(RpcInvoker.InvokeMethod <PersonContract>(loginToken, moduleID, personalID));
     }
     catch (Exception ex)
     {
         LogError.Log("ErrorLog_PinService_", ex, stream =>
         {
             stream.WriteLine(String.Format("HMIS GetPersonInfo Error: {0}", ex.Message
                                            ));
         });
         throw;
     }
 }
コード例 #3
0
 public static MobileIndexesContract GetMobileIndexByID(Guid?ID)
 {
     return(RpcInvoker.InvokeMethod <MobileIndexesContract>(ID));
 }
コード例 #4
0
 public static Dictionary <String, String> GetUserAttributesDictionary(Guid token, Guid userID, Guid projectID)
 {
     return(RpcInvoker.InvokeMethod <Dictionary <String, String> >(token, userID, projectID));
 }
コード例 #5
0
 public static PermissionContract GetResourcePermission(Guid token, String resourcePath)
 {
     return(RpcInvoker.InvokeMethod <PermissionContract>(token, resourcePath));
 }
コード例 #6
0
 public static List <GroupContract> GetUserGroups(Guid token, Guid userID, Guid projectID)
 {
     return(RpcInvoker.InvokeMethod <List <GroupContract> >(token, userID, projectID));
 }
コード例 #7
0
 public static List <ProjectContract> GetProjects()
 {
     return(RpcInvoker.InvokeMethod <List <ProjectContract> >());
 }
コード例 #8
0
 public static PasswordChangeResultEnum ChangePassword(Guid token, String newPassword, String oldPassword)
 {
     return(RpcInvoker.InvokeMethod <PasswordChangeResultEnum>(token, newPassword, oldPassword));
 }
コード例 #9
0
 public static List <UserContract> GetAllUsers(Guid token, bool deleteds)
 {
     return(RpcInvoker.InvokeMethod <List <UserContract> >(token, deleteds));
 }
コード例 #10
0
 public static void SetTranslatedText(String moduleName, String languagePair, String trnKey, String translatedText)
 {
     RpcInvoker.InvokeMethod(moduleName, languagePair, trnKey, translatedText);
 }
コード例 #11
0
 public static List <TranslationContract> GetTranslations(String moduleName, String languagePair, List <TranslationContract> list)
 {
     return(RpcInvoker.InvokeMethod <List <TranslationContract> >(moduleName, languagePair, list));
 }
コード例 #12
0
 public static String GetTranslatedText(String moduleName, String languagePair, String trnKey, String defaultText)
 {
     return(RpcInvoker.InvokeMethod <String>(moduleName, languagePair, trnKey, defaultText));
 }
コード例 #13
0
 public static void SetTranslation(String moduleName, String languagePair, String trnKey, TranslationContract contract)
 {
     RpcInvoker.InvokeMethod(moduleName, languagePair, trnKey, contract);
 }
コード例 #14
0
 public static TranslationContract GetTranslation(String moduleName, String languagePair, String trnKey)
 {
     return(RpcInvoker.InvokeMethod <TranslationContract>(moduleName, languagePair, trnKey));
 }
コード例 #15
0
 public static List <LanguageContract> GetLanguages()
 {
     return(RpcInvoker.InvokeMethod <List <LanguageContract> >());
 }
コード例 #16
0
 public static void Logout(Guid token)
 {
     RpcInvoker.InvokeMethod(token);
 }
コード例 #17
0
 public static bool IsTokenActual(Guid token)
 {
     return(RpcInvoker.InvokeMethod <bool>(token));
 }
コード例 #18
0
 public static List <GroupAttributeContract> GetGroupAttributes(Guid token, Guid groupID)
 {
     return(RpcInvoker.InvokeMethod <List <GroupAttributeContract> >(token, groupID));
 }
コード例 #19
0
 public static UserContract GetUser(Guid token, Guid userID)
 {
     return(RpcInvoker.InvokeMethod <UserContract>(token, userID));
 }
コード例 #20
0
 public static List <UserAttributeContract> GetUserAttributes(Guid token, Guid userID, Guid projectID)
 {
     return(RpcInvoker.InvokeMethod <List <UserAttributeContract> >(token, userID, projectID));
 }
コード例 #21
0
 public static Guid?Login(String loginName, String password, bool encryptedPassword)
 {
     return(RpcInvoker.InvokeMethod <Guid?>(loginName, password, encryptedPassword));
 }
コード例 #22
0
 public static List <ProjectContract> GetProjectByUserToken(Guid token)
 {
     return(RpcInvoker.InvokeMethod <List <ProjectContract> >(token));
 }
コード例 #23
0
 public static List <UserContract> GetGroupUsers(Guid token, Guid groupID)
 {
     return(RpcInvoker.InvokeMethod <List <UserContract> >(token, groupID));
 }
コード例 #24
0
 public static List <MessageContract> GetMessages(Guid token, Guid?projectID)
 {
     return(RpcInvoker.InvokeMethod <List <MessageContract> >(token, projectID));
 }
コード例 #25
0
 public static List <AttributeValueContract> GetAttributeValues(Guid token, Guid parentID)
 {
     return(RpcInvoker.InvokeMethod <List <AttributeValueContract> >(token, parentID));
 }
コード例 #26
0
 public static bool HasMessages(Guid token, Guid?projectID)
 {
     return(RpcInvoker.InvokeMethod <bool>(token, projectID));
 }
コード例 #27
0
 public static List <PermissionContract> GetAllResourcesPermissions(Guid token, Guid?projectID)
 {
     return(RpcInvoker.InvokeMethod <List <PermissionContract> >(token, projectID));
 }
コード例 #28
0
 public static UserContract GetCurrentUser(Guid token)
 {
     return(RpcInvoker.InvokeMethod <UserContract>(token));
 }
コード例 #29
0
 public static Dictionary <Guid, Dictionary <String, String> > GetAllUsersGlobalAttribetes(Guid token, bool deleteds)
 {
     return(RpcInvoker.InvokeMethod <Dictionary <Guid, Dictionary <String, String> > >(token, deleteds));
 }
コード例 #30
0
 public static void SendSms(String number, String message)
 {
     RpcInvoker.InvokeMethod(number, message);
 }