Example #1
0
 public static VolunteerHelper GetInstance(AppUserIdentityClaims claims = null)
 {
     if (helper == null)
     {
         lock (helperlocker)
         {
             if (helper == null)
             {
                 helper = new VolunteerHelper(claims);
             }
         }
     }
     return(helper);
 }
 public ProjectProgressHelper()
 {
     database = DatabaseContext.GetInstance();
     vhelper  = VolunteerHelper.GetInstance();
 }
Example #3
0
 private CsvHelper()
 {
     database = DatabaseContext.GetInstance();
     vhelper  = VolunteerHelper.GetInstance();//claims没有传
 }