Format:
Recent snippets matching tags of Service
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
32 Views
no comments
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;
145 Views
no comments
<UnicastBusConfig> <MessageEndpointMappings> <add Messages="Messages.Persistence" Endpoint="PersisterInputQueue" /> </MessageEndpointMappings> </UnicastBusConfig>
100 Views
no comments
private void GenerateReport() { ViewModel viewModel = new ViewModel(); int quoteNo = 1000; viewModel.LoadData(quoteNo); ReportViewer1.Reset(); ReportViewer1.LocalReport.ReportPath = Server.MapPath("Report2.rdlc");
164 Views
no comments
class Program { static void Main() { if (Environment.UserInteractive) { ServiceManager serviceManager = new ServiceManager(); serviceManager.OpenAll(); Console.ReadKey(); serviceManager.CloseAll(); } else ServiceBase.Run(new WindowsService());
85 Views
no comments
protected void Application_Start(object sender, EventArgs e) { try { Bus = Configure.WithWeb() .SpringBuilder() .XmlSerializer() .MsmqTransport() .IsTransactional(false) .PurgeOnStartup(false)
65 Views
no comments
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)
59 Views
no comments
public class SagaFinder : IFindSagas<MySagaData>.Using<MyMessage> { public MySagaData FindBy(MyMessage message) { } }
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
public class CSLExportProvider : ExportProvider { private IServiceLocator serviceLocator; private IDictionary<string, Type> contractMapping; public CSLExportProvider(IServiceLocator serviceLocator) { this.contractMapping = new Dictionary<string, Type>();
943 Views
2 comments
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; }
104 Views
no comments
public class FluentSagaPersister : ISagaPersister { /// <summary> /// Injected session factory. /// </summary> public ISessionFactory SessionFactory { get; set; } #region ISagaPersister Members public void Save(ISagaEntity saga)
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>
311 Views
no comments
CLEAR DO TrackServiceProxy LOCAL loProxy as TrackServiceProxy loProxy = CREATEOBJECT("TrackServiceProxy") LOCAL loBridge as wwDotNetBridge loBridge = loProxy.oBRIDGE
154 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
