CodePaste Logo
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
/* Google jquery CDN 
 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> */
   
            $.ajax(
            {
                type: "POST",
                contentType: "application/json; charset=utf-8",
                url: "services/FeedService.svc/ServiceMethod",
                data: '{"param1":"data1" , "param2":"data2"}',
                dataType: "json",
by frank2tek   October 04, 2011 @ 11:25am
62 Views
no comments
 
<system.serviceModel>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="True"/>
    <services>
      <service behaviorConfiguration="SyndicationServerBehavior" name="SimpleBolg.services.FeedService">
        <endpoint behaviorConfiguration="AjaxBehavior" binding="webHttpBinding" contract="SimpleBolg.services.IFeedService"/>
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="SyndicationServerBehavior">
by frank2tek   October 04, 2011 @ 11:20am
43 Views
no comments
 
C#
/* 
 * Escrito por Jone Polvora - jpolvora@gmail.com
 * Julho2011
 * Novidades: Convenção para resolver interfaces (IClasse, Classe)
 * Resolver por String
 * Resolver com parâmetros
 * Escopo de registro
 * Objetos registrados com WeakReference
 */
 
by Jone   August 01, 2011 @ 10:47pm
96 Views
no comments
 
XML
<!-- place under the <system.web> node-->
<webServices>
    <wsdlHelpGenerator href="denied.aspx" />
    <protocols>
       <remove name="HttpGet" />
       <remove name="HttpPost" />
    </protocols>
</webServices>
by Egli   July 18, 2011 @ 12:56am
87 Views
no comments
 
C#
if (Environment.UserInteractive)
{
    service.Start(args);
 
    Console.WriteLine("Press any key to stop program");
 
    Console.ReadKey();
    service.Stop();
}
else
by bnaya   March 08, 2011 @ 2:04am
93 Views
no comments
 
XML
<UnicastBusConfig>
  <MessageEndpointMappings>
    <add Messages="Messages.Persistence" Endpoint="PersisterInputQueue" />
  </MessageEndpointMappings>
</UnicastBusConfig>
by Mikael Henriksson   January 19, 2010 @ 6:34am
380 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
520 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
288 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
239 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
204 Views
no comments
 
C#
public class SagaFinder : IFindSagas<MySagaData>.Using<MyMessage>
{
    public MySagaData FindBy(MyMessage message)
    {
        
    }
}
by Mikael Henriksson   November 07, 2009 @ 5:53am
361 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.
580 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
1742 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
279 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
312 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
1016 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
540 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