Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/23/10 00:23:20 (14 years ago)
Author:
hmayr
Message:

first commit from hmayr, just minor changes (#1046)

  • formatted source code files to fit HeuristicLab standards
  • deleted old LINQ to SQL Classes
  • create LINQ to SQL Class for HeuristicLabUser (just prototype)
Location:
branches/HeuristicLab.Services.Authentication Prototype/Service
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Services.Authentication Prototype/Service/IService1.cs

    r3932 r3939  
    66using System.Text;
    77
    8 namespace Service
    9 {
    10     // HINWEIS: Wenn Sie hier den Schnittstellennamen "IService1" ändern, müssen Sie ebenfalls den Verweis auf "IService1" in "App.config" aktualisieren.
    11     [ServiceContract]
    12     public interface IService1
    13     {
    14         [OperationContract]
    15         string GetData(int value);
     8namespace Service {
     9  // HINWEIS: Wenn Sie hier den Schnittstellennamen "IService1" ändern, müssen Sie ebenfalls den Verweis auf "IService1" in "App.config" aktualisieren.
     10  [ServiceContract]
     11  public interface IService1 {
     12    [OperationContract]
     13    string GetData(int value);
    1614
    17         [OperationContract]
    18         CompositeType GetDataUsingDataContract(CompositeType composite);
     15    [OperationContract]
     16    CompositeType GetDataUsingDataContract(CompositeType composite);
    1917
    20         // AUFGABE: Hier Dienstvorgänge hinzufügen
     18    // AUFGABE: Hier Dienstvorgänge hinzufügen
     19  }
     20
     21  // Verwenden Sie einen Datenvertrag, wie im folgenden Beispiel dargestellt, um Dienstvorgängen zusammengesetzte Typen hinzuzufügen.
     22  [DataContract]
     23  public class CompositeType {
     24    bool boolValue = true;
     25    string stringValue = "Hello ";
     26
     27    [DataMember]
     28    public bool BoolValue {
     29      get { return boolValue; }
     30      set { boolValue = value; }
    2131    }
    2232
    23     // Verwenden Sie einen Datenvertrag, wie im folgenden Beispiel dargestellt, um Dienstvorgängen zusammengesetzte Typen hinzuzufügen.
    24     [DataContract]
    25     public class CompositeType
    26     {
    27         bool boolValue = true;
    28         string stringValue = "Hello ";
    29 
    30         [DataMember]
    31         public bool BoolValue
    32         {
    33             get { return boolValue; }
    34             set { boolValue = value; }
    35         }
    36 
    37         [DataMember]
    38         public string StringValue
    39         {
    40             get { return stringValue; }
    41             set { stringValue = value; }
    42         }
     33    [DataMember]
     34    public string StringValue {
     35      get { return stringValue; }
     36      set { stringValue = value; }
    4337    }
     38  }
    4439}
  • branches/HeuristicLab.Services.Authentication Prototype/Service/Provider/HeuristicLabMembershipProvider.cs

    r3932 r3939  
    55using System.Web.Security;
    66
    7 namespace Service.Provider
    8 {
    9     class HeuristicLabMembershipProvider : MembershipProvider
    10     {
    11         public override string ApplicationName
    12         {
    13             get
    14             {
    15                 throw new NotImplementedException();
    16             }
    17             set
    18             {
    19                 throw new NotImplementedException();
    20             }
    21         }
     7namespace Service.Provider {
     8  class HeuristicLabMembershipProvider : MembershipProvider {
     9    public override string ApplicationName {
     10      get {
     11        throw new NotImplementedException();
     12      }
     13      set {
     14        throw new NotImplementedException();
     15      }
     16    }
    2217
    23         public override bool ChangePassword(string username, string oldPassword, string newPassword)
    24         {
    25             throw new NotImplementedException();
    26         }
     18    public override bool ChangePassword(string username, string oldPassword, string newPassword) {
     19      throw new NotImplementedException();
     20    }
    2721
    28         public override bool ChangePasswordQuestionAndAnswer(string username, string password, string newPasswordQuestion, string newPasswordAnswer)
    29         {
    30             throw new NotImplementedException();
    31         }
     22    public override bool ChangePasswordQuestionAndAnswer(string username, string password, string newPasswordQuestion, string newPasswordAnswer) {
     23      throw new NotImplementedException();
     24    }
    3225
    33         public override MembershipUser CreateUser(string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, out MembershipCreateStatus status)
    34         {
    35             throw new NotImplementedException();
    36         }
     26    public override MembershipUser CreateUser(string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, out MembershipCreateStatus status) {
     27      throw new NotImplementedException();
     28    }
    3729
    38         public override bool DeleteUser(string username, bool deleteAllRelatedData)
    39         {
    40             throw new NotImplementedException();
    41         }
     30    public override bool DeleteUser(string username, bool deleteAllRelatedData) {
     31      throw new NotImplementedException();
     32    }
    4233
    43         public override bool EnablePasswordReset
    44         {
    45             get { throw new NotImplementedException(); }
    46         }
     34    public override bool EnablePasswordReset {
     35      get { throw new NotImplementedException(); }
     36    }
    4737
    48         public override bool EnablePasswordRetrieval
    49         {
    50             get { throw new NotImplementedException(); }
    51         }
     38    public override bool EnablePasswordRetrieval {
     39      get { throw new NotImplementedException(); }
     40    }
    5241
    53         public override MembershipUserCollection FindUsersByEmail(string emailToMatch, int pageIndex, int pageSize, out int totalRecords)
    54         {
    55             throw new NotImplementedException();
    56         }
     42    public override MembershipUserCollection FindUsersByEmail(string emailToMatch, int pageIndex, int pageSize, out int totalRecords) {
     43      throw new NotImplementedException();
     44    }
    5745
    58         public override MembershipUserCollection FindUsersByName(string usernameToMatch, int pageIndex, int pageSize, out int totalRecords)
    59         {
    60             throw new NotImplementedException();
    61         }
     46    public override MembershipUserCollection FindUsersByName(string usernameToMatch, int pageIndex, int pageSize, out int totalRecords) {
     47      throw new NotImplementedException();
     48    }
    6249
    63         public override MembershipUserCollection GetAllUsers(int pageIndex, int pageSize, out int totalRecords)
    64         {
    65             throw new NotImplementedException();
    66         }
     50    public override MembershipUserCollection GetAllUsers(int pageIndex, int pageSize, out int totalRecords) {
     51      throw new NotImplementedException();
     52    }
    6753
    68         public override int GetNumberOfUsersOnline()
    69         {
    70             throw new NotImplementedException();
    71         }
     54    public override int GetNumberOfUsersOnline() {
     55      throw new NotImplementedException();
     56    }
    7257
    73         public override string GetPassword(string username, string answer)
    74         {
    75             throw new NotImplementedException();
    76         }
     58    public override string GetPassword(string username, string answer) {
     59      throw new NotImplementedException();
     60    }
    7761
    78         public override MembershipUser GetUser(string username, bool userIsOnline)
    79         {
    80             throw new NotImplementedException();
    81         }
     62    public override MembershipUser GetUser(string username, bool userIsOnline) {
     63      throw new NotImplementedException();
     64    }
    8265
    83         public override MembershipUser GetUser(object providerUserKey, bool userIsOnline)
    84         {
    85             throw new NotImplementedException();
    86         }
     66    public override MembershipUser GetUser(object providerUserKey, bool userIsOnline) {
     67      throw new NotImplementedException();
     68    }
    8769
    88         public override string GetUserNameByEmail(string email)
    89         {
    90             throw new NotImplementedException();
    91         }
     70    public override string GetUserNameByEmail(string email) {
     71      throw new NotImplementedException();
     72    }
    9273
    93         public override int MaxInvalidPasswordAttempts
    94         {
    95             get { throw new NotImplementedException(); }
    96         }
     74    public override int MaxInvalidPasswordAttempts {
     75      get { throw new NotImplementedException(); }
     76    }
    9777
    98         public override int MinRequiredNonAlphanumericCharacters
    99         {
    100             get { throw new NotImplementedException(); }
    101         }
     78    public override int MinRequiredNonAlphanumericCharacters {
     79      get { throw new NotImplementedException(); }
     80    }
    10281
    103         public override int MinRequiredPasswordLength
    104         {
    105             get { throw new NotImplementedException(); }
    106         }
     82    public override int MinRequiredPasswordLength {
     83      get { throw new NotImplementedException(); }
     84    }
    10785
    108         public override int PasswordAttemptWindow
    109         {
    110             get { throw new NotImplementedException(); }
    111         }
     86    public override int PasswordAttemptWindow {
     87      get { throw new NotImplementedException(); }
     88    }
    11289
    113         public override MembershipPasswordFormat PasswordFormat
    114         {
    115             get { throw new NotImplementedException(); }
    116         }
     90    public override MembershipPasswordFormat PasswordFormat {
     91      get { throw new NotImplementedException(); }
     92    }
    11793
    118         public override string PasswordStrengthRegularExpression
    119         {
    120             get { throw new NotImplementedException(); }
    121         }
     94    public override string PasswordStrengthRegularExpression {
     95      get { throw new NotImplementedException(); }
     96    }
    12297
    123         public override bool RequiresQuestionAndAnswer
    124         {
    125             get { throw new NotImplementedException(); }
    126         }
     98    public override bool RequiresQuestionAndAnswer {
     99      get { throw new NotImplementedException(); }
     100    }
    127101
    128         public override bool RequiresUniqueEmail
    129         {
    130             get { throw new NotImplementedException(); }
    131         }
     102    public override bool RequiresUniqueEmail {
     103      get { throw new NotImplementedException(); }
     104    }
    132105
    133         public override string ResetPassword(string username, string answer)
    134         {
    135             throw new NotImplementedException();
    136         }
     106    public override string ResetPassword(string username, string answer) {
     107      throw new NotImplementedException();
     108    }
    137109
    138         public override bool UnlockUser(string userName)
    139         {
    140             throw new NotImplementedException();
    141         }
     110    public override bool UnlockUser(string userName) {
     111      throw new NotImplementedException();
     112    }
    142113
    143         public override void UpdateUser(MembershipUser user)
    144         {
    145             throw new NotImplementedException();
    146         }
     114    public override void UpdateUser(MembershipUser user) {
     115      throw new NotImplementedException();
     116    }
    147117
    148         public override bool ValidateUser(string username, string password)
    149         {
    150             throw new NotImplementedException();
    151         }
     118    public override bool ValidateUser(string username, string password) {
     119      throw new NotImplementedException();
    152120    }
     121  }
    153122}
  • branches/HeuristicLab.Services.Authentication Prototype/Service/Provider/HeuristicLabRoleProvider.cs

    r3932 r3939  
    55using System.Web.Security;
    66
    7 namespace Service.Provider
    8 {
    9     class HeuristicLabRoleProvider : RoleProvider
    10     {
    11         public override void AddUsersToRoles(string[] usernames, string[] roleNames)
    12         {
    13             throw new NotImplementedException();
    14         }
     7namespace Service.Provider {
     8  class HeuristicLabRoleProvider : RoleProvider {
     9    public override void AddUsersToRoles(string[] usernames, string[] roleNames) {
     10      throw new NotImplementedException();
     11    }
    1512
    16         public override string ApplicationName
    17         {
    18             get
    19             {
    20                 throw new NotImplementedException();
    21             }
    22             set
    23             {
    24                 throw new NotImplementedException();
    25             }
    26         }
     13    public override string ApplicationName {
     14      get {
     15        throw new NotImplementedException();
     16      }
     17      set {
     18        throw new NotImplementedException();
     19      }
     20    }
    2721
    28         public override void CreateRole(string roleName)
    29         {
    30             throw new NotImplementedException();
    31         }
     22    public override void CreateRole(string roleName) {
     23      throw new NotImplementedException();
     24    }
    3225
    33         public override bool DeleteRole(string roleName, bool throwOnPopulatedRole)
    34         {
    35             throw new NotImplementedException();
    36         }
     26    public override bool DeleteRole(string roleName, bool throwOnPopulatedRole) {
     27      throw new NotImplementedException();
     28    }
    3729
    38         public override string[] FindUsersInRole(string roleName, string usernameToMatch)
    39         {
    40             throw new NotImplementedException();
    41         }
     30    public override string[] FindUsersInRole(string roleName, string usernameToMatch) {
     31      throw new NotImplementedException();
     32    }
    4233
    43         public override string[] GetAllRoles()
    44         {
    45             throw new NotImplementedException();
    46         }
     34    public override string[] GetAllRoles() {
     35      throw new NotImplementedException();
     36    }
    4737
    48         public override string[] GetRolesForUser(string username)
    49         {
    50             throw new NotImplementedException();
    51         }
     38    public override string[] GetRolesForUser(string username) {
     39      throw new NotImplementedException();
     40    }
    5241
    53         public override string[] GetUsersInRole(string roleName)
    54         {
    55             throw new NotImplementedException();
    56         }
     42    public override string[] GetUsersInRole(string roleName) {
     43      throw new NotImplementedException();
     44    }
    5745
    58         public override bool IsUserInRole(string username, string roleName)
    59         {
    60             throw new NotImplementedException();
    61         }
     46    public override bool IsUserInRole(string username, string roleName) {
     47      throw new NotImplementedException();
     48    }
    6249
    63         public override void RemoveUsersFromRoles(string[] usernames, string[] roleNames)
    64         {
    65             throw new NotImplementedException();
    66         }
     50    public override void RemoveUsersFromRoles(string[] usernames, string[] roleNames) {
     51      throw new NotImplementedException();
     52    }
    6753
    68         public override bool RoleExists(string roleName)
    69         {
    70             throw new NotImplementedException();
    71         }
     54    public override bool RoleExists(string roleName) {
     55      throw new NotImplementedException();
    7256    }
     57  }
    7358}
  • branches/HeuristicLab.Services.Authentication Prototype/Service/Service1.cs

    r3932 r3939  
    66using System.Text;
    77
    8 namespace Service
    9 {
    10     // HINWEIS: Wenn Sie hier den Klassennamen "Service1" ändern, müssen Sie ebenfalls den Verweis auf "Service1" in "App.config" aktualisieren.
    11     public class Service1 : IService1
    12     {
    13         public string GetData(int value)
    14         {
    15             return string.Format("You entered: {0}", value);
    16         }
     8namespace Service {
     9  // HINWEIS: Wenn Sie hier den Klassennamen "Service1" ändern, müssen Sie ebenfalls den Verweis auf "Service1" in "App.config" aktualisieren.
     10  public class Service1 : IService1 {
     11    public string GetData(int value) {
     12      return string.Format("You entered: {0}", value);
     13    }
    1714
    18         public CompositeType GetDataUsingDataContract(CompositeType composite)
    19         {
    20             if (composite.BoolValue)
    21             {
    22                 composite.StringValue += "Suffix";
    23             }
    24             return composite;
    25         }
     15    public CompositeType GetDataUsingDataContract(CompositeType composite) {
     16      if (composite.BoolValue) {
     17        composite.StringValue += "Suffix";
     18      }
     19      return composite;
    2620    }
     21  }
    2722}
Note: See TracChangeset for help on using the changeset viewer.