Format:
Recent snippets matching tags of service
function twitter_mobypicture_page($query) {
if (user_type() == 'oauth') {
//Has the user submitted an image and message?
if ($_POST['message']) {
$messages = stripslashes($_POST['message']);
$serviceURL = 'https://api.mobypicture.com/2.0/upload.json';
//Set the initial headers
$header = array(
42 Views
no comments
/* 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",
103 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">
65 Views
no comments
using System; using System.Collections.Generic; namespace UltraLight { public class RegistrationInfo { private readonly object _lock = new object(); private readonly UltraLightContainer _container; private readonly Type _concrete;
124 Views
no comments
<!-- place under the <system.web> node--> <webServices> <wsdlHelpGenerator href="denied.aspx" /> <protocols> <remove name="HttpGet" /> <remove name="HttpPost" /> </protocols> </webServices>
114 Views
no comments
if (Environment.UserInteractive) { service.Start(args); Console.WriteLine("Press any key to stop program"); Console.ReadKey(); service.Stop(); } else
121 Views
no comments
<UnicastBusConfig> <MessageEndpointMappings> <add Messages="Messages.Persistence" Endpoint="PersisterInputQueue" /> </MessageEndpointMappings> </UnicastBusConfig>
430 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");
569 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());
321 Views
no comments
protected void Application_Start(object sender, EventArgs e) { try { Bus = Configure.WithWeb() .SpringBuilder() .XmlSerializer() .MsmqTransport() .IsTransactional(false) .PurgeOnStartup(false)
266 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)
224 Views
no comments
public class SagaFinder : IFindSagas<MySagaData>.Using<MyMessage> { public MySagaData FindBy(MyMessage message) { } }
406 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.
649 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>();
1844 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; }
305 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)
338 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>
1107 Views
no comments
CLEAR DO TrackServiceProxy LOCAL loProxy as TrackServiceProxy loProxy = CREATEOBJECT("TrackServiceProxy") LOCAL loBridge as wwDotNetBridge loBridge = loProxy.oBRIDGE
624 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
