本文整理汇总了C#中System.Current类的典型用法代码示例。如果您正苦于以下问题:C# Current类的具体用法?C# Current怎么用?C# Current使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Current类属于System命名空间,在下文中一共展示了Current类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: WeatherModel
public WeatherModel(ForecastIO.ForecastIOResponse forecast)
{
this.currentWeather = new Current(forecast);
this.day0 = new Daily(forecast, 0);
this.day1 = new Daily(forecast, 1);
this.day2 = new Daily(forecast, 2);
}
开发者ID:bvarghese78,项目名称:Weather,代码行数:7,代码来源:WeatherModel.cs
示例2: peerConnected
public override void peerConnected(string peerId, PeerAccessLevel peerAccessLevel, ObjectPrx peerProxy, Current current)
{
Trace.TraceError("TerkUserServant.peerConnected()" + current.ToString());
Trace.TraceError("The peer [" + peerId + "|" + peerAccessLevel + "|" + Util.identityToString(peerProxy.ice_getIdentity()) + "] just connected to me.");
helper.peerConnected(peerId, peerAccessLevel, peerProxy, current);
}
开发者ID:CMU-CREATE-Lab,项目名称:terk-legacy,代码行数:7,代码来源:TerkUserServant.cs
示例3: instantiateSoldier
public override VSSoldierPrx instantiateSoldier(Current current__)
{
Identity myId = VSNetworkManager.communicator().stringToIdentity(System.Guid.NewGuid().ToString());
VSSoldierI soldierI = new VSSoldierI();
VSNetworkManager.Adapter.add(soldierI, myId);
return VSSoldierPrxHelper.checkedCast(VSNetworkManager.Adapter.createProxy(myId));
}
开发者ID:Firemann,项目名称:veryseriousgame,代码行数:7,代码来源:VSUnityClientI.cs
示例4: getDateTimeValue
public override void getDateTimeValue(out int year, out short month, out short day, out short hour, out short minute, out short second, Current __current)
{
year = this.year;
month = this.month;
day = this.day;
hour = 0;
minute = 0;
second = 0;
}
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:9,代码来源:DateTI.cs
示例5: name
// Slice name() operation.
public override string name(Current c)
{
lock(this)
{
if(_destroyed)
{
throw new ObjectNotExistException();
}
return _name;
}
}
开发者ID:pedia,项目名称:zeroc-ice,代码行数:13,代码来源:DirectoryI.cs
示例6: read
public override string[] read(Current c)
{
lock(this)
{
if(_destroyed)
{
throw new ObjectNotExistException();
}
return _lines;
}
}
开发者ID:RonsonNamek,项目名称:ice-demos,代码行数:12,代码来源:FileI.cs
示例7: write
public override void write(string[] text, Current c)
{
lock(this)
{
if(_destroyed)
{
throw new ObjectNotExistException();
}
_lines = new string[text.Length];
text.CopyTo((string[])_lines, 0);
}
}
开发者ID:RonsonNamek,项目名称:ice-demos,代码行数:13,代码来源:FileI.cs
示例8: createBoxModule
/// <summary>
/// Method createBoxModule
/// </summary>
/// <returns>A Ferda.Modules.BoxModulePrx</returns>
/// <param name="__current">An Ice.Current</param>
public override BoxModulePrx createBoxModule(Current __current)
{
if (_destroy)
{
throw new Ice.ObjectNotExistException();
}
Ice.Identity boxModuleIdentity = Ice.Util.stringToIdentity(Ice.Util.generateUUID());
PropertyBoxModuleI boxModule = new PropertyBoxModuleI(myProxy, this.propertyClassIceId, this.propertyFunctionsIceIds, __current.adapter, boxModuleIdentity, valueFromPrx, defaultValue);
BoxModulePrx boxModulePrx = boxModule.MyProxy;
string boxIdentity = Ice.Util.identityToString(boxModulePrx.ice_getIdentity());
this.boxModules[boxIdentity] = boxModule;
return boxModulePrx;
}
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:18,代码来源:PropertyBoxModuleFactoryI.cs
示例9: createBoxModuleFactory
/// <summary>
/// Method createBoxModuleFactory
/// </summary>
/// <returns>A Ferda.Modules.BoxModuleFactoryPrx</returns>
/// <param name="localePrefs">A string[]</param>
/// <param name="manager">A Ferda.ModulesManager.ManagersEnginePrx</param>
/// <param name="__current">An Ice.Current</param>
public override BoxModuleFactoryPrx createBoxModuleFactory(String[] localePrefs, ManagersEnginePrx manager, Current __current)
{
PropertyBoxModuleFactoryI boxModuleFactory = new PropertyBoxModuleFactoryI(propertyClassIceId,
propertyFunctionsIceIds,
myProxy,
localePrefs,
defaultValue,
valueFromPrx,
__current.adapter,
settingModuleIdentifier);
this.reaper.Add(boxModuleFactory.MyProxy, boxModuleFactory);
return boxModuleFactory.MyProxy;
}
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:20,代码来源:PropertyBoxModuleFactoryCreatorI.cs
示例10: destroy
public override void destroy(Current c)
{
lock(this)
{
if(_destroyed)
{
throw new ObjectNotExistException();
}
c.adapter.remove(id());
_destroyed = true;
}
_parent.removeEntry(_name);
}
开发者ID:RonsonNamek,项目名称:ice-demos,代码行数:15,代码来源:FileI.cs
示例11: createFile
// Slice createFile() operation.
public override FilePrx createFile(string name, Current c)
{
lock(this)
{
if(_destroyed)
{
throw new ObjectNotExistException();
}
if(name.Length == 0 || _contents.ContainsKey(name))
{
throw new NameInUse(name);
}
var f = new FileI(name, this);
var node = c.adapter.add(f, f.id());
_contents.Add(name, f);
return FilePrxHelper.uncheckedCast(node);
}
}
开发者ID:zhangwei5095,项目名称:zeroc-ice-demos,代码行数:21,代码来源:DirectoryI.cs
示例12: createDirectory
// Slice createDirectory() operation.
public override DirectoryPrx createDirectory(string name, Current c)
{
lock(this)
{
if(_destroyed)
{
throw new ObjectNotExistException();
}
if(name.Length == 0 || _contents.ContainsKey(name))
{
throw new NameInUse(name);
}
var d = new DirectoryI(name, this);
var node = c.adapter.add(d, d.id());
_contents.Add(name, d);
return DirectoryPrxHelper.uncheckedCast(node);
}
}
开发者ID:zhangwei5095,项目名称:zeroc-ice-demos,代码行数:21,代码来源:DirectoryI.cs
示例13: find
// Slice find() operation.
public override NodeDesc find(string name, Current c)
{
lock(this)
{
if(_destroyed)
{
throw new ObjectNotExistException();
}
NodeI p = (NodeI) _contents[name];
if(p == null)
{
throw new NoSuchName(name);
}
NodeDesc d = new NodeDesc();
d.name = name;
d.type = p is FileI ? NodeType.FileType : NodeType.DirType;
d.proxy = NodePrxHelper.uncheckedCast(c.adapter.createProxy(p.id()));
return d;
}
}
开发者ID:pedia,项目名称:zeroc-ice,代码行数:24,代码来源:DirectoryI.cs
示例14: list
// Slice list() operation.
public override NodeDesc[] list(Current c)
{
lock(this)
{
if(_destroyed)
{
throw new ObjectNotExistException();
}
NodeDesc[] ret = new NodeDesc[_contents.Count];
int i = 0;
foreach(DictionaryEntry e in _contents)
{
NodeI p = (NodeI)e.Value;
ret[i] = new NodeDesc();
ret[i].name = (string)e.Key;
ret[i].type = p is FileI ? NodeType.FileType : NodeType.DirType;
ret[i].proxy = NodePrxHelper.uncheckedCast(c.adapter.createProxy(p.id()));
++i;
}
return ret;
}
}
开发者ID:pedia,项目名称:zeroc-ice,代码行数:25,代码来源:DirectoryI.cs
示例15: getTimeValue
/// <summary>
/// Method getdateValue
/// </summary>
/// <param name="year">A short</param>
/// <param name="month">A short</param>
/// <param name="day">A short</param>
/// <param name="__current">An Ice.Current</param>
public override void getTimeValue(out short hour, out short minute, out short second, Current __current)
{
hour = this.hour;
minute = this.minute;
second = this.second;
}
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:13,代码来源:TimeTI.cs
示例16: getStringValue
public override String getStringValue(Current __current)
{
TimeSpan timeSpan = new TimeSpan();
this.TryGetTimeSpan(out timeSpan);
return timeSpan.ToString();
}
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:6,代码来源:TimeTI.cs
示例17: dispatch__
public override DispatchStatus dispatch__(IceInternal.Incoming inS__, Current current)
{
byte[] inEncaps = inS__.readParamEncaps();
AMD_Object_ice_invoke cb = new _AMD_Object_ice_invoke(inS__);
try
{
ice_invoke_async(cb, inEncaps, current);
}
catch(System.Exception ex)
{
cb.ice_exception(ex);
}
return DispatchStatus.DispatchAsync;
}
开发者ID:Radulfr,项目名称:zeroc-ice,代码行数:14,代码来源:Object.cs
示例18: ice_invoke_async
public abstract void ice_invoke_async(AMD_Object_ice_invoke cb, byte[] inEncaps, Current current);
开发者ID:Radulfr,项目名称:zeroc-ice,代码行数:1,代码来源:Object.cs
示例19: ice_invoke
/// <summary>
/// Dispatch an incoming request.
/// </summary>
/// <param name="inParams">The encoded in-parameters for the operation.</param>
/// <param name="outParams">The encoded out-paramaters and return value
/// for the operation. The return value follows any out-parameters.</param>
/// <param name="current">The Current object to pass to the operation.</param>
/// <returns>If the operation completed successfully, the return value
/// is true. If the operation raises a user exception,
/// the return value is false; in this case, outParams
/// must contain the encoded user exception. If the operation raises an
/// Ice run-time exception, it must throw it directly.</returns>
public abstract bool ice_invoke(byte[] inParams, out byte[] outParams, Current current);
开发者ID:Radulfr,项目名称:zeroc-ice,代码行数:13,代码来源:Object.cs
示例20: ice_id___
public static DispatchStatus ice_id___(Ice.Object __obj, IceInternal.Incoming inS__, Current __current)
{
inS__.readEmptyParams();
string __ret = __obj.ice_id(__current);
IceInternal.BasicStream os__ = inS__.startWriteParams__(FormatType.DefaultFormat);
os__.writeString(__ret);
inS__.endWriteParams__(true);
return DispatchStatus.DispatchOK;
}
开发者ID:Radulfr,项目名称:zeroc-ice,代码行数:9,代码来源:Object.cs
注:本文中的System.Current类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论