New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of Service
SQL
select
    'EXEC dbo.AddEvent @EventType=''TimedSubscription'', @EventData=''' + CAST(a.SubscriptionID AS VARCHAR(40)) + '''' AS ReportCommand
    , b.name AS JobName
    , a.SubscriptionID
    , e.name
    , e.path
    , d.description
    , laststatus
    , eventtype
    , LastRunTime
April 13, 2010 @ 11:20pm
32 Views
no comments
 
C#
namespace PersistConfigSettings
{
    using System;
    using System.Collections.ObjectModel;
    using System.Linq;
    using System.ServiceModel;
    using System.ServiceModel.Channels;
    using System.ServiceModel.Description;
    using System.ServiceModel.Dispatcher;
    using System.Text;
by Lars Wilhelmsen   April 04, 2010 @ 1:01pm
145 Views
no comments
 
XML
<UnicastBusConfig>
  <MessageEndpointMappings>
    <add Messages="Messages.Persistence" Endpoint="PersisterInputQueue" />
  </MessageEndpointMappings>
</UnicastBusConfig>
by Mikael Henriksson   January 19, 2010 @ 6:34am
100 Views
no comments
 
C#
private void GenerateReport()
{
    ViewModel viewModel = new ViewModel();
 
    int quoteNo = 1000;
    viewModel.LoadData(quoteNo);
 
    ReportViewer1.Reset();
    ReportViewer1.LocalReport.ReportPath = Server.MapPath("Report2.rdlc");
by Matt Slay   December 28, 2009 @ 9:43pm
164 Views
no comments
 
C#
class Program {  
    static void Main() {  
        if (Environment.UserInteractive) {  
            ServiceManager serviceManager = new ServiceManager();  
            serviceManager.OpenAll();  
            Console.ReadKey();  
            serviceManager.CloseAll();  
        }  
        else  
            ServiceBase.Run(new WindowsService());  
by grenade   December 21, 2009 @ 5:54am
85 Views
no comments
 
C#
protected void Application_Start(object sender, EventArgs e)
 {
     try
     {
         Bus = Configure.WithWeb()
             .SpringBuilder()
             .XmlSerializer()
             .MsmqTransport()
                 .IsTransactional(false)
                 .PurgeOnStartup(false)
by Mikael Henriksson   December 16, 2009 @ 3:24am
65 Views
no comments
 
C#
public static Configure CustomSagaPersister(this Configure config, ISessionFactory sessionFactory)
{
    if (sessionFactory == null)
    {
        throw new InvalidOperationException("Session factory is needed for saga persistence.");
    }
 
    config.Configurer.RegisterSingleton<ISessionFactory>(sessionFactory);
    config.Configurer
        .ConfigureComponent<FluentSagaPersister>(ComponentCallModelEnum.Singlecall)
by Mikael Henriksson   November 08, 2009 @ 9:40am
59 Views
no comments
 
C#
public class SagaFinder : IFindSagas<MySagaData>.Using<MyMessage>
{
    public MySagaData FindBy(MyMessage message)
    {
        
    }
}
by Mikael Henriksson   November 07, 2009 @ 5:53am
118 Views
no comments
 
Public Class ProjectInstaller
 
    Private Const LOG_SOURCE As String = "Log"
    Private Const LOG_LOG As String = "Log"
    Private _mainEventLog As EventLog
 
    Public Sub New()
        MyBase.New()
 
        'This call is required by the Component Designer.
186 Views
no comments
 
C#
 
 
public class CSLExportProvider : ExportProvider
{
    private IServiceLocator serviceLocator;
    private IDictionary<string, Type> contractMapping;
    
    public CSLExportProvider(IServiceLocator serviceLocator)
    {
        this.contractMapping = new Dictionary<string, Type>();
by Glenn Block   September 26, 2009 @ 12:25am
943 Views
2 comments
 
C#
public static class ExtensionMethods
{
    public static Configure FluentSagaPersister(this Configure config)
    {
        ISessionFactory sessionFactory = FluentConfig.GetFluentSessionFactory();
        config.Configurer.RegisterSingleton<ISessionFactory>(sessionFactory);
        config.Configurer.ConfigureComponent<FluentSagaPersister>(ComponentCallModelEnum.Singlecall);
 
        return config;
    }
by Mikael Henriksson   September 20, 2009 @ 3:56am
104 Views
no comments
 
C#
public class FluentSagaPersister : ISagaPersister
{
    /// <summary>
    /// Injected session factory.
    /// </summary>
    public ISessionFactory SessionFactory { get; set; }
 
    #region ISagaPersister Members
 
    public void Save(ISagaEntity saga)
by Mikael Henriksson   September 20, 2009 @ 3:48am
93 Views
no comments
 
if (JSON && !JSON.parseWithDate) {
    var reISO = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/;
    var reMsAjax = /^\/Date\((d|-|.*)\)[\/|\\]$/;
 
    JSON.parseWithDate = function(json) {
        /// <summary>
        /// parses a JSON string and turns ISO or MSAJAX date strings
        /// into native JS date objects
        /// </summary>    
        /// <param name="json" type="var">json with dates to parse</param>        
by Rick Strahl   September 15, 2009 @ 3:31pm
311 Views
no comments
 
CLEAR
DO TrackServiceProxy
 
LOCAL loProxy as TrackServiceProxy
loProxy = CREATEOBJECT("TrackServiceProxy")
 
LOCAL loBridge as wwDotNetBridge
loBridge = loProxy.oBRIDGE
 
by Rick Strahl   July 17, 2009 @ 12:13pm
154 Views
no comments
 
brought to you by:
West Wind Techologies


If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate