Beispiel #1
0
 public static void Initialize <TProvider>(object[] parameters)
 {
     _instance = (AuthorizationProvider)typeof(TProvider).GetConstructor(new Type[]
                                                                         { typeof(object[]) }).Invoke(new object[] { parameters });
 }
Beispiel #2
0
 public static void Destroy()
 {
     _instance = null;
 }
Beispiel #3
0
 public static void Initialize <TProvider>() where TProvider : AuthorizationProvider, new()
 {
     _instance = new TProvider();
 }