Permalink
Browse files

placeholder for rembering how I want to look up classes in their asse…

…mblies
  • Loading branch information...
chad committed Mar 20, 2010
1 parent dfa7219 commit fbe3bd2e34d98a61a5d20981cbf7c604be67dd14
Showing with 11 additions and 2 deletions.
  1. +5 −0 ExampleRunner/Program.cs
  2. +5 −1 resque-sharp/Job.cs
  3. +1 −1 resque-sharp/redis-sharp.cs
View
@@ -3,6 +3,7 @@
using System.Linq;
using System.Text;
using resque;
+using System.Reflection;
class DummyJob
{
@@ -22,7 +23,11 @@ class Program
{
static void Main(string[] args)
{
+ Console.WriteLine(resque.DummyJob.assemblyQualifiedName());
+
Type t = typeof(DummyJob);
+ Assembly.GetExecutingAssembly();
+
Console.WriteLine(t.AssemblyQualifiedName);
string assemblyQualification = ", ExampleRunner, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null";
Resque.setAssemblyQualifier(assemblyQualification);
View
@@ -124,7 +124,6 @@ internal void fail(Exception e)
}
- // FIXME: These shouldn't have to be here. Need to figure out how to cleanly load from multiple assemblies dynamically
public class DummyJob
{
public static string queue()
@@ -135,6 +134,11 @@ public static void perform(params object[] args)
{
Console.WriteLine("This is the dummy job reporting in");
}
+
+ public static string assemblyQualifiedName()
+ {
+ return System.Reflection.Assembly.GetExecutingAssembly().FullName;
+ }
//public DummyJob(string queue, Dictionary<string,object> dictionary) : base(queue, dictionary)
//{
@@ -10,7 +10,7 @@
//
// temporarily forked for resque-sharp from http://github.com/migueldeicaza/redis-sharp for convenience
-#define DEBUG
+//#define DEBUG
using System;
using System.IO;

0 comments on commit fbe3bd2

Please sign in to comment.