spring.net

Connecting To A Private Remote MSMQ Queue

断了今生、忘了曾经 提交于 2019-12-03 15:02:36
I'm trying to connect to a remote private MSMQ queue using the path: "FormatName:DIRECT=OS:remoteMachineName\Private$\MyQueue" and I'm getting the following error: "The specified format name does not support the requested operation. For example, a direct queue format name cannot be deleted." I'm obviously doing something wrong. However this does work using a local queue. I'm using Spring.Net's Messaging . Here's my config <objects xmlns="http://www.springframework.net"> <object id="myQueue" type="Spring.Messaging.Support.MessageQueueFactoryObject, Spring.Messaging"> <property name="Path" value

Developing a web app with Mono (opensource .NET) any examples?

对着背影说爱祢 提交于 2019-12-03 08:14:36
I am a Java, Scala, Python web app Linux guy. I want to play around with Mono (particularly F#) for web development. I am just looking for an example web application written in Mono perhaps in Github (any CLI language is fine). I have tried googling and cannot find a good starting point (or if its even possible). From what I gather I could sort of combine: Fast CGI (nginx, lighttpd) Mono Spring framework .NET (I can't even tell if it will work on Mono) Advanced apologies if there is a glaringly obvious resource (web site) that I missed. (useful site: http://www.tryfsharp.org/Resources/GetMono

Castle Windsor or Spring.NET - advantages and disadvantages [closed]

落爺英雄遲暮 提交于 2019-12-03 06:42:14
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Yesterday I was reading some articles in this site while I stumbled on an article about this two new IoC tools. Which one should I learn first? Is there some specification about which one should be used when? Mark Seemann Neither Castle.Windsor or Spring.NET

Spring.net Logging Example using aop

非 Y 不嫁゛ 提交于 2019-12-02 07:38:46
问题 I'm learning Spring.Net and am trying something simple, which is not working. I want to log any method calls decorated with LogCall namespace WpfApplication1 { public partial class MainWindow : Window { public MainWindow() { Test(); InitializeComponent(); } [LogCall] public void Test() { } } public class LogCallInterceptor : IMethodBeforeAdvice { public void Before(MethodInfo method, object[] args, object target) { Debug.Write(method.Name); } } [Serializable] [AttributeUsage(AttributeTargets

spring.codeconfig vs xml configuration

主宰稳场 提交于 2019-12-02 07:32:21
问题 I've been using spring.net with xml configuration for some times, and I just saw that spring team released CodeConfig a month ago. What I like about the xml config is that if I have a problem on the live server I can easily change the xml configuration to enable some specific debugging settings, or disable a specific component simply changing the xml configuration. What is the advantage of using a code configuration instead of an xml configuration other than compile time check? 回答1: With code

Spring.net - PropertyRetrievingFactoryObject - property is null

天涯浪子 提交于 2019-12-02 06:52:54
问题 In an attempt to resolve this question, I'm taking a look at how our spring.net configuration works. The root problem comes from this snippet: <object name="someObject" singleton="false" type="SomeType.someObject, SomeAssembly"> <constructor-arg name="authSession"> <object type="Spring.Objects.Factory.Config.PropertyRetrievingFactoryObject, Spring.Core"> <property name="TargetObject" ref="AuthSessionManager" /> <property name="TargetProperty" value="CurrentAuthSession" /> </object> <

How do I configure a property of a static class in Spring.NET?

为君一笑 提交于 2019-12-02 05:41:12
问题 How do I configure a static class via Spring .NET? Consider the following class: static class Abc { public Interface xyz { get; set; } public void Show() { xyz.show(); } } 回答1: Maybe a workaround can help.. This is not a static class but it works like one namespace Nyan { public class Util{ protected Util(){} //to avoid accidental instatiation public static string DATETIMEFORMAT = "HH:mm:ss"; public static DateTime parseDate(string sDate) { return DateTime.ParseExact(sDate, DATETIMEFORMAT,

spring.codeconfig vs xml configuration

烈酒焚心 提交于 2019-12-02 03:19:50
I've been using spring.net with xml configuration for some times, and I just saw that spring team released CodeConfig a month ago. What I like about the xml config is that if I have a problem on the live server I can easily change the xml configuration to enable some specific debugging settings, or disable a specific component simply changing the xml configuration. What is the advantage of using a code configuration instead of an xml configuration other than compile time check? With code config, possible benefits you could get are: Better refactoring support; e.g. renaming an injected property

How do I configure a property of a static class in Spring.NET?

心已入冬 提交于 2019-12-02 01:13:31
How do I configure a static class via Spring .NET? Consider the following class: static class Abc { public Interface xyz { get; set; } public void Show() { xyz.show(); } } Maybe a workaround can help.. This is not a static class but it works like one namespace Nyan { public class Util{ protected Util(){} //to avoid accidental instatiation public static string DATETIMEFORMAT = "HH:mm:ss"; public static DateTime parseDate(string sDate) { return DateTime.ParseExact(sDate, DATETIMEFORMAT, CultureInfo.InvariantCulture); } } } <object id="Util" type="Nyan.Util, Nyan" singleton="true"> <property name

Spring.net - PropertyRetrievingFactoryObject - property is null

给你一囗甜甜゛ 提交于 2019-12-02 00:53:43
In an attempt to resolve this question, I'm taking a look at how our spring.net configuration works. The root problem comes from this snippet: <object name="someObject" singleton="false" type="SomeType.someObject, SomeAssembly"> <constructor-arg name="authSession"> <object type="Spring.Objects.Factory.Config.PropertyRetrievingFactoryObject, Spring.Core"> <property name="TargetObject" ref="AuthSessionManager" /> <property name="TargetProperty" value="CurrentAuthSession" /> </object> </constructor-arg> </object> In a case where a user is not logged in, AuthSessionManager.CurrentAuthSession will