예제 #1
0
 private static void InjectDependencies(BrnklyApiControllerBase controller)
 {
     if (controller != null)
     {
         controller.RavenHelper = new RavenHelper();
         controller.RavenSession = readWriteOpsStore.OpenSession();
         controller.RavenSession.Advanced.UseOptimisticConcurrency = true;
     }
 }
예제 #2
0
 private static void InjectDependencies(BrnklyApiControllerBase controller)
 {
     if (controller != null)
     {
         controller.RavenHelper  = new RavenHelper();
         controller.RavenSession = readWriteOpsStore.OpenSession();
         controller.RavenSession.Advanced.UseOptimisticConcurrency = true;
     }
 }