locked
Exposing a codebase to >1 application RRS feed

  • Question

  • Hi,

    I have a codebase, which will be used by several applications (Winforms, ASP.NET etc).

    What techniques would facilitate this requirement (service layer?)?


    How could Biztalk (or what part of Biztalk) could help with this? Likewise, could NServiceBus help in exposing the codebase? Is this as simple as just making web services, exposing the codebase?

    Thanks

    Friday, December 24, 2010 3:55 PM

All replies


  •  

    The below section is taken from the url which is given below.

    http://msdn.microsoft.com/en-us/library/system.reflection.assembly.codebase.aspx

     Assembly.CodeBase Property

     Assembly SampleAssembly;

    // Instantiate a target object.

    Int32 Integer1 = new Int32();

    Type Type1;

    // Set the Type instance to the target class type.

    Type1 = Integer1.GetType();

    // Instantiate an Assembly class to the assembly housing the Integer type. 

    SampleAssembly = Assembly.GetAssembly(Integer1.GetType());

    // Gets the location of the assembly using file: protocol.

    Console.WriteLine("CodeBase=" + SampleAssembly.CodeBase);


    PHIJO MP
    Saturday, December 25, 2010 5:35 AM