View btnInvoke_Click.cs
private void btnInvoke_Click(object sender, RoutedEventArgs e)
{
EndpointAddress address = new EndpointAddress("net.tcp://localhost:8011/MovieName");
Binding binding = new NetTcpBinding();
ChannelFactory<IMovieName> factory = new ChannelFactory<IMovieName>(binding, address);
IMovieName proxy = factory.CreateChannel();
View MainWindow.cs
using System;
using System.Collections.Generic;
using System.ServiceModel;
using System.ServiceModel.Channels;
using System.Windows;
using MovieLib.Client.Contracts;
using MovieLib.Contracts;
using MovieLib.Proxies;
namespace MovieLib.Client
View generics.cs
using System;
namespace Generic_Constraints
{
class MyClassOne
{
public MyClassOne()
{
Console.WriteLine("Printing Ctor 1");
}
View startup.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
View startup.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
View startup.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
View launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceRoot}/bin/Debug/netcoreapp1.0/samplemovieapp.dll",
"args": [],
View launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceRoot}/bin/Debug/<target-framework>/<project-name.dll>",
"args": [],
View MovieOps.js
//Since, we have moved in module file itself, we don't need to specify module name explicitly, it wil be taken care by require js, which requested it
define([], function(){
"use strict";
/* load and save movies */
var STORE_NAME = "movies";
function savemovieData (movies) {
View MovieOps.js
//Since, we have moved in module file itself, we don't need to specify module name explicitly, it wil be taken care by require js, which requested it
define([], function(){
"use strict";
/* load and save movies */
var STORE_NAME = "movies";
function savemovieData (movies) {